]> granicus.if.org Git - php/commitdiff
MFH: Remove unnecessary casts.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 3 Dec 2003 22:51:54 +0000 (22:51 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 3 Dec 2003 22:51:54 +0000 (22:51 +0000)
ext/standard/url.c

index d66bd546d17c0b0e51b997a51393cf060895decd..813de7349d233af8d112644ce21fdb58aa46445c 100644 (file)
@@ -104,7 +104,7 @@ PHPAPI php_url *php_url_parse(char *str)
                         * correctly parse things like a.com:80
                         */
                        p = e + 1;
-                       while (isdigit((int)*(unsigned char *)p)) {
+                       while (isdigit(p)) {
                                p++;
                        }
                        
@@ -145,7 +145,7 @@ PHPAPI php_url *php_url_parse(char *str)
                p = e + 1;
                pp = p;
                
-               while (pp-p < 6 && isdigit((int)*(unsigned char *)pp)) {
+               while (pp-p < 6 && isdigit(pp)) {
                        pp++;
                }
                
@@ -443,7 +443,7 @@ PHPAPI int php_url_decode(char *str, int len)
        while (len--) {
                if (*data == '+')
                        *dest = ' ';
-               else if (*data == '%' && len >= 2 && isxdigit((int) *(unsigned char *)(data + 1)) && isxdigit((int) *(unsigned char *)(data + 2))) {
+               else if (*data == '%' && len >= 2 && isxdigit((int) *(data + 1)) && isxdigit((int) *(data + 2))) {
 #ifndef CHARSET_EBCDIC
                        *dest = (char) php_htoi(data + 1);
 #else