diff --git a/tinyxml2.h b/tinyxml2.h index 1fdc928..c95f8c3 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -561,8 +561,8 @@ public: return false; } - inline static int IsUTF8Continuation( const char p ) { - return p & 0x80; + inline static bool IsUTF8Continuation( const char p ) { + return ( p & 0x80 ) != 0; } static const char* ReadBOM( const char* p, bool* hasBOM );