diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-12-03 22:51:51 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-12-03 22:51:51 +0000 |
commit | 81e41e3cb966c2ec5d902d619a2934d98ce77d4f (patch) | |
tree | 05b197055aae50a57c4f158deac6e9b8a0bca2f4 /ext/standard/url.c | |
parent | 35bdc2f7eb1b277d738b5ca33689294e992c0244 (diff) | |
download | php-git-81e41e3cb966c2ec5d902d619a2934d98ce77d4f.tar.gz |
Remove unnecessary casts.
Diffstat (limited to 'ext/standard/url.c')
-rw-r--r-- | ext/standard/url.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |