diff --git a/tinyxml2.cpp b/tinyxml2.cpp index abb7f40..f86634c 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -1550,7 +1550,7 @@ void XMLAttribute::SetAttribute( const char* v ) } -void XMLAttribute::SetAttribute( int v ) +void XMLAttribute::SetAttribute( int32_t v ) { char buf[BUF_SIZE]; XMLUtil::ToStr( v, buf, BUF_SIZE ); @@ -1558,7 +1558,7 @@ void XMLAttribute::SetAttribute( int v ) } -void XMLAttribute::SetAttribute( unsigned v ) +void XMLAttribute::SetAttribute( uint32_t v ) { char buf[BUF_SIZE]; XMLUtil::ToStr( v, buf, BUF_SIZE ); diff --git a/tinyxml2.h b/tinyxml2.h index 07089d1..a9c99f9 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -1226,9 +1226,9 @@ public: /// Set the attribute to a string value. void SetAttribute( const char* value ); /// Set the attribute to value. - void SetAttribute( int value ); + void SetAttribute(int32_t value ); /// Set the attribute to value. - void SetAttribute( unsigned value ); + void SetAttribute( uint32_t value ); /// Set the attribute to value. void SetAttribute(int64_t value); /// Set the attribute to value.