From df4fdeb54e8b1ebb00ffd53e69e2b5572f8433d2 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Mon, 19 Aug 2002 20:47:42 +0000 Subject: [PATCH] Fix a warning --- ext/ereg/ereg.c | 2 +- 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 13e06ba3cc..9b8513e380 100644 --- a/ext/ereg/ereg.c +++ b/ext/ereg/ereg.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 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 -- 2.50.1