commit | ee2f18d0ee87f9287d16b3b93986bac1e0b100e4 | [log] [tgz] |
---|---|---|
author | Fredrik Lundh <fredrik@pythonware.com> | Tue Jul 03 19:27:05 2001 +0000 |
committer | Fredrik Lundh <fredrik@pythonware.com> | Tue Jul 03 19:27:05 2001 +0000 |
tree | c54499bd090a4921a22bf7f1fc8d1124c934131c | |
parent | 20006b2d51c21e7bcff96b8a8014037c10665d07 [diff] [blame] |
bug #232815 ch is unsigned, so testing for negative values doesn't make sense (as noticed by the OpenVMS compiler)
diff --git a/Modules/regexpr.c b/Modules/regexpr.c index 8b36580..8694c74 100644 --- a/Modules/regexpr.c +++ b/Modules/regexpr.c
@@ -1383,7 +1383,7 @@ if (a < '0' || a > '9') goto bad_match_register; ch = 10 * (a - '0') + ch - '0'; - if (ch <= 0 || ch >= RE_NREGS) + if (ch == 0 || ch >= RE_NREGS) goto bad_match_register; bufp->uses_registers = 1; opcode = Cmatch_memory;