From 5d219c893bcf1fee70d54e34397964550e6e880c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20H=C3=B6pfinger?= Date: Thu, 30 May 2024 19:21:27 +0200 Subject: [PATCH] Update attribute query functions to use int32_t and uint32_t types. - Changed QueryIntAttribute parameter type from int* to int32_t* - Changed QueryUnsignedAttribute parameter type from unsigned int* to uint32_t* --- tinyxml2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tinyxml2.h b/tinyxml2.h index 2baad3a..120a0c6 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -1343,7 +1343,7 @@ public: QueryIntAttribute( "foo", &value ); // if "foo" isn't found, value will still be 10 @endverbatim */ - XMLError QueryIntAttribute( const char* name, int* value ) const { + XMLError QueryIntAttribute( const char* name, int32_t* value ) const { const XMLAttribute* a = FindAttribute( name ); if ( !a ) { return XML_NO_ATTRIBUTE; @@ -1352,7 +1352,7 @@ public: } /// See QueryIntAttribute() - XMLError QueryUnsignedAttribute( const char* name, unsigned int* value ) const { + XMLError QueryUnsignedAttribute( const char* name, uint32_t* value ) const { const XMLAttribute* a = FindAttribute( name ); if ( !a ) { return XML_NO_ATTRIBUTE;