Commit c30faa81 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

[Bug #1177831] Fix generation of code for GROUPREF_EXISTS. Thanks to Andre Malo for the fix.

parent 5f937a7b
......@@ -167,7 +167,7 @@ def _compile(code, pattern, flags):
emit(av-1)
elif op is GROUPREF_EXISTS:
emit(OPCODES[op])
emit((av[0]-1)*2)
emit(av[0]-1)
skipyes = _len(code); emit(0)
_compile(code, av[1], flags)
if av[2]:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment