From 53d8ec5573166f081c4a02b035807258b07b1ec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20H=C3=B6pfinger?= Date: Thu, 30 May 2024 20:28:46 +0200 Subject: [PATCH] Update attribute setting functions to use specific integer types The commit updates attribute setting functions to use int32_t and uint32_t types for better clarity and consistency. --- tinyxml2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tinyxml2.h b/tinyxml2.h index a9c99f9..5c165a0 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -1470,12 +1470,12 @@ public: a->SetAttribute( value ); } /// Sets the named attribute to value. - void SetAttribute( const char* name, int value ) { + void SetAttribute( const char* name, int32_t value ) { XMLAttribute* a = FindOrCreateAttribute( name ); a->SetAttribute( value ); } /// Sets the named attribute to value. - void SetAttribute( const char* name, unsigned value ) { + void SetAttribute( const char* name, uint32_t value ) { XMLAttribute* a = FindOrCreateAttribute( name ); a->SetAttribute( value ); }