]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[Bug #1177831] Fix generation of code for GROUPREF_EXISTS. Thanks to Andre Malo...
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 2 Jun 2005 13:35:52 +0000 (13:35 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 2 Jun 2005 13:35:52 +0000 (13:35 +0000)
Lib/sre_compile.py

index d3eb3c1e5f3af409c86cb076438fe2ec377c6284..1d448dae2ac42fa82759503a9d083f3e8072d225 100644 (file)
@@ -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]: