]> granicus.if.org Git - libexpat/commitdiff
Avoid warning for Netscape.
authorJames Clark <jjc@jclark.com>
Wed, 27 Oct 1999 01:34:43 +0000 (01:34 +0000)
committerJames Clark <jjc@jclark.com>
Wed, 27 Oct 1999 01:34:43 +0000 (01:34 +0000)
expat/xmlparse/xmlparse.c

index d38dfd1ccd9d5396c6225d68f05b39d342f7e31a..90be19c0e24cb5e05337639b51287e6229d0a752 100755 (executable)
@@ -2023,8 +2023,7 @@ initializeEncoding(XML_Parser parser)
     int i;
     for (i = 0; protocolEncodingName[i]; i++) {
       if (i == sizeof(encodingBuf) - 1
-         || protocolEncodingName[i] >= 0x80
-         || protocolEncodingName[i] < 0) {
+         || (protocolEncodingName[i] & ~0x7f) != 0) {
        encodingBuf[0] = '\0';
        break;
       }