summaryrefslogtreecommitdiff
path: root/ext/standard/url.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2008-03-28 10:22:12 (GMT)
committerAntony Dovgal <tony2001@php.net>2008-03-28 10:22:12 (GMT)
commit9d9468e9f41233f60e2720badfac088e43c26566 (patch)
tree346691eafa0d5e20d29d3123e4c3b28894354080 /ext/standard/url.c
parentafa42ce4532b4d6930505e6830b93cfc416d4b74 (diff)
downloadphp-9d9468e9f41233f60e2720badfac088e43c26566.tar.gz
fix compile warnings
Diffstat (limited to 'ext/standard/url.c')
-rw-r--r--ext/standard/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/url.c b/ext/standard/url.c
index 2a6463d..975d5be 100644
--- a/ext/standard/url.c
+++ b/ext/standard/url.c
@@ -450,8 +450,8 @@ PHPAPI char *php_url_encode(char const *s, int len, int *new_length)
unsigned char *to, *start;
unsigned char const *from, *end;
- from = s;
- end = s + len;
+ from = (unsigned char *)s;
+ end = (unsigned char *)s + len;
start = to = (unsigned char *) safe_emalloc(3, len, 1);
while (from < end) {