]> granicus.if.org Git - php/commitdiff
- MFH: beware of signedness
authorMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 18 Aug 2008 03:26:21 +0000 (03:26 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 18 Aug 2008 03:26:21 +0000 (03:26 +0000)
ext/standard/html.c

index 59bcca2a65d27a5d806848856e37b7dca1d4fa10..a32886617b06dd70d01490ac8e59abea68da700b 100644 (file)
@@ -1198,21 +1198,21 @@ encode_amp:
                                                        if (*s == 'x' || *s == 'X') {
                                                                s++;
                                                                while (s < e) {
-                                                                       if (!isxdigit(*s++)) {
+                                                                       if (!isxdigit((int)*(unsigned char *)s++)) {
                                                                                goto encode_amp;
                                                                        }
                                                                }
                                                        /* Dec (&#90;)*/
                                                        } else {
                                                                while (s < e) {
-                                                                       if (!isdigit(*s++)) {
+                                                                       if (!isdigit((int)*(unsigned char *)s++)) {
                                                                                goto encode_amp;
                                                                        }
                                                                }
                                                        }
                                                } else { /* text entities */
                                                        while (s < e) {
-                                                               if (!isalnum(*s++)) {
+                                                               if (!isalnum((int)*(unsigned char *)s++)) {
                                                                        goto encode_amp;
                                                                }
                                                        }