فهرست منبع

Update IntValue and UnsignedValue to use int32_t and uint32_t types.
This change ensures consistent integer handling throughout the codebase.

Franz Höpfinger 1 سال پیش
والد
کامیت
095a8ffa42
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      tinyxml2.h

+ 4 - 4
tinyxml2.h

@@ -1162,8 +1162,8 @@ public:
         If the value isn't an integer, 0 will be returned. There is no error checking;
         If the value isn't an integer, 0 will be returned. There is no error checking;
     	use QueryIntValue() if you need error checking.
     	use QueryIntValue() if you need error checking.
     */
     */
-	int	IntValue() const {
-		int i = 0;
+    int32_t IntValue() const {
+    	int32_t i = 0;
 		QueryIntValue(&i);
 		QueryIntValue(&i);
 		return i;
 		return i;
 	}
 	}
@@ -1181,8 +1181,8 @@ public:
     }
     }
 
 
     /// Query as an unsigned integer. See IntValue()
     /// Query as an unsigned integer. See IntValue()
-    unsigned UnsignedValue() const			{
-        unsigned i=0;
+    uint32_t UnsignedValue() const			{
+    	uint32_t i=0;
         QueryUnsignedValue( &i );
         QueryUnsignedValue( &i );
         return i;
         return i;
     }
     }