cvs: php-src /ext/standard reg.c
| From: | Jani Taskinen | Date: | Thu, 12 Jul 2007 12:12:31 +0000 |
| Subject: | cvs: php-src /ext/standard reg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-45286@lists.php.net to get a copy of this message | ||
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 <jaakko@hyvatti.iki.fi> |
+----------------------------------------------------------------------+
*/
-/* $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;
}