mirror of
https://github.com/leethomason/tinyxml2.git
synced 2026-07-28 22:52:59 +04:00
Update ToStr functions to use int32_t and uint32_t types, and change corresponding function signatures in the header file. Update ToInt and ToUnsigned functions to use int32_t and uint32_t types respectively.
This commit is contained in:
+2
-2
@@ -563,13 +563,13 @@ const char* XMLUtil::GetCharacterRef( const char* p, char* value, int* length )
|
||||
}
|
||||
|
||||
|
||||
void XMLUtil::ToStr( int v, char* buffer, int bufferSize )
|
||||
void XMLUtil::ToStr( int32_t v, char* buffer, int bufferSize )
|
||||
{
|
||||
TIXML_SNPRINTF( buffer, bufferSize, "%d", v );
|
||||
}
|
||||
|
||||
|
||||
void XMLUtil::ToStr( unsigned v, char* buffer, int bufferSize )
|
||||
void XMLUtil::ToStr( uint32_t v, char* buffer, int bufferSize )
|
||||
{
|
||||
TIXML_SNPRINTF( buffer, bufferSize, "%u", v );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user