From: Ilia Alshanetsky Date: Wed, 3 Dec 2003 22:51:51 +0000 (+0000) Subject: Remove unnecessary casts. X-Git-Tag: php-5.0.0b3RC1~368 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81e41e3cb966c2ec5d902d619a2934d98ce77d4f;p=php Remove unnecessary casts. --- diff --git a/ext/standard/url.c b/ext/standard/url.c index 1ae3e7e619..47dcab002e 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -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++; } @@ -151,7 +151,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++; } @@ -457,7 +457,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