[Python-checkins] CVS: python/dist/src/Modules regexpr.c,1.33,1.34
Fredrik Lundh
effbot@users.sourceforge.net
2001年7月03日 12:27:07 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv27037/modules
Modified Files:
regexpr.c
Log Message:
bug #232815
ch is unsigned, so testing for negative values doesn't make
sense (as noticed by the OpenVMS compiler)
Index: regexpr.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/regexpr.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -r1.33 -r1.34
*** regexpr.c 2000年07月21日 06:00:07 1.33
--- regexpr.c 2001年07月03日 19:27:05 1.34
***************
*** 1384,1388 ****
goto bad_match_register;
ch = 10 * (a - '0') + ch - '0';
! if (ch <= 0 || ch >= RE_NREGS)
goto bad_match_register;
bufp->uses_registers = 1;
--- 1384,1388 ----
goto bad_match_register;
ch = 10 * (a - '0') + ch - '0';
! if (ch == 0 || ch >= RE_NREGS)
goto bad_match_register;
bufp->uses_registers = 1;