Bladeren bron

Merge pull request #213 from Dmitry-Me/likelyWrongSignature

Function signature is most likely wrong
Lee Thomason 11 jaren geleden
bovenliggende
commit
853de8169b
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      tinyxml2.h

+ 2 - 2
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 );