Browse Source

Merge pull request #213 from Dmitry-Me/likelyWrongSignature

Function signature is most likely wrong
Lee Thomason 11 năm trước cách đây
mục cha
commit
853de8169b
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      tinyxml2.h

+ 2 - 2
tinyxml2.h

@@ -558,8 +558,8 @@ public:
         return false;
         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 );
     static const char* ReadBOM( const char* p, bool* hasBOM );