cvs: php4 /ext/standard reg.c
| From: | Moriyoshi Koizumi | Date: | Fri, 10 Jan 2003 04:44:22 +0000 |
| Subject: | cvs: php4 /ext/standard reg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-17785@lists.php.net to get a copy of this message | ||
moriyoshi Thu Jan 9 23:44:22 2003 EDT
Modified files:
/php4/ext/standard reg.c
Log:
Reduced compiler warnings
Index: php4/ext/standard/reg.c
diff -u php4/ext/standard/reg.c:1.69 php4/ext/standard/reg.c:1.70
--- php4/ext/standard/reg.c:1.69 Tue Dec 31 11:07:54 2002
+++ php4/ext/standard/reg.c Thu Jan 9 23:44:21 2003
@@ -17,7 +17,7 @@
| Jaakko Hyvätti <jaakko@hyvatti.iki.fi> |
+----------------------------------------------------------------------+
*/
-/* $Id: reg.c,v 1.69 2002/12/31 16:07:54 sebastian Exp $ */
+/* $Id: reg.c,v 1.70 2003/01/10 04:44:21 moriyoshi Exp $ */
#include <stdio.h>
#include <ctype.h>
@@ -347,7 +347,7 @@
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) {