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 <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $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) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php