diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-01-10 04:44:21 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-01-10 04:44:21 +0000 |
commit | 380928e6bfe982aecbd7b5e2a42d7db266b4e0b6 (patch) | |
tree | b6b1876e0e8c7f895d316dbc0ee00f24cf316be2 /ext | |
parent | 7ecd3ff91a13e94cc5ef240d6d8b87644b25c567 (diff) | |
download | php-git-380928e6bfe982aecbd7b5e2a42d7db266b4e0b6.tar.gz |
Reduced compiler warnings
Diffstat (limited to 'ext')
-rw-r--r-- | ext/ereg/ereg.c | 2 | ||||
-rw-r--r-- | ext/standard/reg.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/ereg/ereg.c b/ext/ereg/ereg.c index 7d9abc9114..791b215d2f 100644 --- a/ext/ereg/ereg.c +++ b/ext/ereg/ereg.c @@ -347,7 +347,7 @@ PHPAPI char *php_reg_replace(const char *pattern, const char *replace, const cha walkbuf = &buf[tmp + subs[0].rm_so]; walk = replace; while (*walk) - if ('\\' == *walk && isdigit(walk[1]) && walk[1] - '0' <= re.re_nsub) { + if ('\\' == *walk && isdigit(walk[1]) && walk[1] - '0' <= (int)re.re_nsub) { if (subs[walk[1] - '0'].rm_so > -1 && subs[walk[1] - '0'].rm_eo > -1 /* this next case shouldn't happen. it does. */ && subs[walk[1] - '0'].rm_so <= subs[walk[1] - '0'].rm_eo) { diff --git a/ext/standard/reg.c b/ext/standard/reg.c index 7d9abc9114..791b215d2f 100644 --- a/ext/standard/reg.c +++ b/ext/standard/reg.c @@ -347,7 +347,7 @@ PHPAPI char *php_reg_replace(const char *pattern, const char *replace, const cha walkbuf = &buf[tmp + subs[0].rm_so]; walk = replace; while (*walk) - if ('\\' == *walk && isdigit(walk[1]) && walk[1] - '0' <= re.re_nsub) { + if ('\\' == *walk && isdigit(walk[1]) && walk[1] - '0' <= (int)re.re_nsub) { if (subs[walk[1] - '0'].rm_so > -1 && subs[walk[1] - '0'].rm_eo > -1 /* this next case shouldn't happen. it does. */ && subs[walk[1] - '0'].rm_so <= subs[walk[1] - '0'].rm_eo) { |