diff --git a/tinyxml2.h b/tinyxml2.h index bf4d84f..4dfb015 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -558,8 +558,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 );