mirror of
https://github.com/leethomason/tinyxml2.git
synced 2026-07-28 22:52:59 +04:00
Update PushText functions to use specific integer types
The commit changes the PushText functions in both the .cpp and .h files to utilize int32_t and uint32_t instead of int and unsigned for better type specificity.
This commit is contained in:
+2
-2
@@ -2895,7 +2895,7 @@ void XMLPrinter::PushText( uint64_t value )
|
||||
}
|
||||
|
||||
|
||||
void XMLPrinter::PushText( int value )
|
||||
void XMLPrinter::PushText( int32_t value )
|
||||
{
|
||||
char buf[BUF_SIZE];
|
||||
XMLUtil::ToStr( value, buf, BUF_SIZE );
|
||||
@@ -2903,7 +2903,7 @@ void XMLPrinter::PushText( int value )
|
||||
}
|
||||
|
||||
|
||||
void XMLPrinter::PushText( unsigned value )
|
||||
void XMLPrinter::PushText( uint32_t value )
|
||||
{
|
||||
char buf[BUF_SIZE];
|
||||
XMLUtil::ToStr( value, buf, BUF_SIZE );
|
||||
|
||||
Reference in New Issue
Block a user