Commits

medoc committed 913ea06

added parentheses around bitfield & expression followed by &&

Comments (0)

Files changed (1)

libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsUniversalDetector.cpp

   for (i = 0; i < aLen; i++)
   {
     //other than 0xa0, if every othe character is ascii, the page is ascii
-    if (aBuf[i] & '\x80' && aBuf[i] != '\xA0')  //Since many Ascii only page contains NBSP 
+    if ((aBuf[i] & '\x80') && aBuf[i] != '\xA0')  //Since many Ascii only page contains NBSP 
     {
       //we got a non-ascii byte (high-byte)
       if (mInputState != eHighbyte)