mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Retract the rage bugfix, but change the range assertion.
This commit is contained in:
parent
610cdc52ca
commit
521f81ca26
1 changed files with 2 additions and 1 deletions
|
@ -1379,7 +1379,7 @@ regexp_registers_t regs;
|
|||
char anchor;
|
||||
|
||||
assert(size1 >= 0 && size2 >= 0 && pos >= 0 && mstop >= 0);
|
||||
assert(pos + range + 1 >= 0 && pos + range - 1 <= size1 + size2);
|
||||
assert(pos + range >= 0 && pos + range <= size1 + size2); /* Bugfix by ylo */
|
||||
assert(pos <= mstop);
|
||||
|
||||
fastmap = bufp->fastmap;
|
||||
|
@ -1396,6 +1396,7 @@ regexp_registers_t regs;
|
|||
}
|
||||
else
|
||||
dir = 1;
|
||||
/* range--; /* Bugfix by Guido */
|
||||
if (anchor == 2)
|
||||
if (pos != 0)
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue