jani Thu Jul 12 12:12:31 2007 UTC
Modified files:
/php-src/ext/standard reg.c
Log:
MFB: fix warning
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/reg.c?r1=1.86&r2=1.87&diff_format=u
Index: php-src/ext/standard/reg.c
diff -u php-src/ext/standard/reg.c:1.86 php-src/ext/standard/reg.c:1.87
--- php-src/ext/standard/reg.c:1.86 Mon Jan 1 09:29:32 2007
+++ php-src/ext/standard/reg.c Thu Jul 12 12:12:30 2007
@@ -17,7 +17,7 @@
| Jaakko Hyvätti <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: reg.c,v 1.86 2007/01/01 09:29:32 sebastian Exp $ */
+/* $Id: reg.c,v 1.87 2007/07/12 12:12:30 jani Exp $ */
#include <stdio.h>
#include <ctype.h>
@@ -355,7 +355,7 @@
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;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php