From 5a69b290824828833e3587cb04478316cae5e39c Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 26 Feb 2006 10:57:00 +0000 Subject: - Warning fixes by Steph --- ext/ereg/ereg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/ereg') diff --git a/ext/ereg/ereg.c b/ext/ereg/ereg.c index a9ebaaee88..3e48d39ab3 100644 --- a/ext/ereg/ereg.c +++ b/ext/ereg/ereg.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; } -- cgit v1.2.1