diff options
author | Jani Taskinen <jani@php.net> | 2007-07-12 12:12:30 +0000 |
---|---|---|
committer | Jani Taskinen <jani@php.net> | 2007-07-12 12:12:30 +0000 |
commit | c4e82d3cb987293b038d22fdd4cd2a5165d87429 (patch) | |
tree | d003f997b18ad62514ac6982fd0fc838c2040133 /ext/standard/reg.c | |
parent | c4e5bda83e6dc46e4f6ca6413e9d77a956f2a7f2 (diff) | |
download | php-git-c4e82d3cb987293b038d22fdd4cd2a5165d87429.tar.gz |
MFB: fix warning
Diffstat (limited to 'ext/standard/reg.c')
-rw-r--r-- | ext/standard/reg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/reg.c b/ext/standard/reg.c index e54da40d58..f47f8d48af 100644 --- a/ext/standard/reg.c +++ b/ext/standard/reg.c @@ -355,7 +355,7 @@ PHPAPI char *php_reg_replace(const char *pattern, const char *replace, const cha new_l = strlen(buf) + subs[0].rm_so; /* part before the match */ walk = replace; while (*walk) { - if ('\\' == *walk && isdigit((unsigned char)walk[1]) && ((unsigned char)walk[1]) - '0' <= re.re_nsub) { + if ('\\' == *walk && isdigit((unsigned char)walk[1]) && ((unsigned char)walk[1]) - '0' <= (int)re.re_nsub) { if (subs[walk[1] - '0'].rm_so > -1 && subs[walk[1] - '0'].rm_eo > -1) { new_l += subs[walk[1] - '0'].rm_eo - subs[walk[1] - '0'].rm_so; } |