Forráskód Böngészése

Update integer types to int32_t and uint32_t for better clarity and consistency.

Franz Höpfinger 1 éve
szülő
commit
693052afe4
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      tinyxml2.cpp

+ 2 - 2
tinyxml2.cpp

@@ -1869,14 +1869,14 @@ XMLError XMLElement::QueryFloatText( float* fval ) const
 
 int XMLElement::IntText(int defaultValue) const
 {
-	int i = defaultValue;
+	int32_t i = defaultValue;
 	QueryIntText(&i);
 	return i;
 }
 
 unsigned XMLElement::UnsignedText(unsigned defaultValue) const
 {
-	unsigned i = defaultValue;
+	uint32_t i = defaultValue;
 	QueryUnsignedText(&i);
 	return i;
 }