mirror of
https://github.com/leethomason/tinyxml2.git
synced 2026-07-21 19:23:00 +04:00
Update IntValue and UnsignedValue to use int32_t and uint32_t types.
This change ensures consistent integer handling throughout the codebase.
This commit is contained in:
+4
-4
@@ -1162,8 +1162,8 @@ public:
|
||||
If the value isn't an integer, 0 will be returned. There is no 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);
|
||||
return i;
|
||||
}
|
||||
@@ -1181,8 +1181,8 @@ public:
|
||||
}
|
||||
|
||||
/// Query as an unsigned integer. See IntValue()
|
||||
unsigned UnsignedValue() const {
|
||||
unsigned i=0;
|
||||
uint32_t UnsignedValue() const {
|
||||
uint32_t i=0;
|
||||
QueryUnsignedValue( &i );
|
||||
return i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user