1
0
mirror of https://github.com/leethomason/tinyxml2.git synced 2026-07-26 13:42:59 +04:00

Update attribute handling to use int32_t and uint32_t types.

The commit changes the attribute handling in the code to utilize int32_t and uint32_t types for better consistency and compatibility.
This commit is contained in:
Franz Höpfinger
2024-05-30 20:31:00 +02:00
parent 53d8ec5573
commit 8df9b25bb9
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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 );