diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 903d690..2e33d08 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -1481,7 +1481,7 @@ void XMLAttribute::SetName( const char* n ) } -XMLError XMLAttribute::QueryIntValue( int* value ) const +XMLError XMLAttribute::QueryIntValue( int32_t* value ) const { if ( XMLUtil::ToInt( Value(), value )) { return XML_SUCCESS; @@ -1490,7 +1490,7 @@ XMLError XMLAttribute::QueryIntValue( int* value ) const } -XMLError XMLAttribute::QueryUnsignedValue( unsigned int* value ) const +XMLError XMLAttribute::QueryUnsignedValue( uint32_t* value ) const { if ( XMLUtil::ToUnsigned( Value(), value )) { return XML_SUCCESS; diff --git a/tinyxml2.h b/tinyxml2.h index 7586f7b..2baad3a 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -1209,9 +1209,9 @@ public: in the provided parameter. The function will return XML_SUCCESS on success, and XML_WRONG_ATTRIBUTE_TYPE if the conversion is not successful. */ - XMLError QueryIntValue( int* value ) const; + XMLError QueryIntValue( int32_t* value ) const; /// See QueryIntValue - XMLError QueryUnsignedValue( unsigned int* value ) const; + XMLError QueryUnsignedValue( uint32_t* value ) const; /// See QueryIntValue XMLError QueryInt64Value(int64_t* value) const; /// See QueryIntValue