From 42875a9f60bd23882334891278339244539bda13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20H=C3=B6pfinger?= Date: Thu, 30 May 2024 20:16:20 +0200 Subject: [PATCH] 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. --- tinyxml2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index ce0c9fa..3ea4f4f 100755 --- a/tinyxml2.cpp +++ b/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;