summaryrefslogtreecommitdiff
path: root/ext/standard/reg.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2002-08-19 20:47:42 +0000
committerZeev Suraski <zeev@php.net>2002-08-19 20:47:42 +0000
commitdf4fdeb54e8b1ebb00ffd53e69e2b5572f8433d2 (patch)
treeb70c6ed333bd7e17ce182d2676c6478cc596e754 /ext/standard/reg.c
parentbed405cce477c4a20a6c2aca6447b0700c96406a (diff)
downloadphp-git-df4fdeb54e8b1ebb00ffd53e69e2b5572f8433d2.tar.gz
Fix a warning
Diffstat (limited to 'ext/standard/reg.c')
-rw-r--r--ext/standard/reg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/reg.c b/ext/standard/reg.c
index 13e06ba3cc..9b8513e380 100644
--- a/ext/standard/reg.c
+++ b/ext/standard/reg.c
@@ -342,7 +342,7 @@ PHPAPI char *php_reg_replace(const char *pattern, const char *replace, const cha
while (*walk)
if ('\\' == *walk
&& '0' <= walk[1] && '9' >= walk[1]
- && walk[1] - '0' <= re.re_nsub
+ && walk[1] - '0' <= ((char) re.re_nsub)
&& subs[walk[1] - '0'].rm_so > -1
&& subs[walk[1] - '0'].rm_eo > -1) {
new_l += subs[walk[1] - '0'].rm_eo