diff --git a/tinyxml2.cpp b/tinyxml2.cpp index f86634c..6b0312a 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -2777,7 +2777,7 @@ void XMLPrinter::PushAttribute( const char* name, const char* value ) } -void XMLPrinter::PushAttribute( const char* name, int v ) +void XMLPrinter::PushAttribute( const char* name, int32_t v ) { char buf[BUF_SIZE]; XMLUtil::ToStr( v, buf, BUF_SIZE ); @@ -2785,7 +2785,7 @@ void XMLPrinter::PushAttribute( const char* name, int v ) } -void XMLPrinter::PushAttribute( const char* name, unsigned v ) +void XMLPrinter::PushAttribute( const char* name, uint32_t v ) { char buf[BUF_SIZE]; XMLUtil::ToStr( v, buf, BUF_SIZE ); diff --git a/tinyxml2.h b/tinyxml2.h index 5c165a0..87e989b 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -2258,8 +2258,8 @@ public: void OpenElement( const char* name, bool compactMode=false ); /// If streaming, add an attribute to an open element. void PushAttribute( const char* name, const char* value ); - void PushAttribute( const char* name, int value ); - void PushAttribute( const char* name, unsigned value ); + void PushAttribute( const char* name, int32_t value ); + void PushAttribute( const char* name, uint32_t value ); void PushAttribute( const char* name, int64_t value ); void PushAttribute( const char* name, uint64_t value ); void PushAttribute( const char* name, bool value );