1
0
mirror of https://github.com/leethomason/tinyxml2.git synced 2026-07-21 19:23:00 +04:00

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.
This commit is contained in:
Franz Höpfinger
2024-05-30 20:16:20 +02:00
parent afb8fabf58
commit 42875a9f60
+1 -1
View File
@@ -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;