Explorar el Código

Update data type in ToBool function for better clarity and consistency.

- Change int to int32_t in the ToBool function for improved data type clarity.
Franz Höpfinger hace 1 año
padre
commit
42875a9f60
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tinyxml2.cpp

+ 1 - 1
tinyxml2.cpp

@@ -635,7 +635,7 @@ bool XMLUtil::ToUnsigned(const char* str, unsigned* value)
 
 bool XMLUtil::ToBool( const char* str, bool* value )
 {
-    int ival = 0;
+	int32_t ival = 0;
     if ( ToInt( str, &ival )) {
         *value = (ival==0) ? false : true;
         return true;