]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-113102: Fix typo in INSTRUMENTED_RESUME (GH-114349)
authorGuido van Rossum <guido@python.org>
Mon, 22 Jan 2024 11:56:28 +0000 (03:56 -0800)
committerGitHub <noreply@github.com>
Mon, 22 Jan 2024 11:56:28 +0000 (11:56 +0000)
Python/bytecodes.c
Python/generated_cases.c.h

index c48f0a17c60fb1524088abc83a1d442351fd1de1..7674ff81f64cec058411280922c53e496af4a4fd 100644 (file)
@@ -192,7 +192,7 @@ dummy_func(
                 ERROR_IF(err, error);
                 if (frame->instr_ptr != this_instr) {
                     /* Instrumentation has jumped */
-                    next_instr = this_instr;
+                    next_instr = frame->instr_ptr;
                     DISPATCH();
                 }
             }
index 68468728d44bf80f13d4f649854f5203e13301ef..c4bb3aeec5e2246185cfa123c68008aad3bb33e1 100644 (file)
                 if (err) goto error;
                 if (frame->instr_ptr != this_instr) {
                     /* Instrumentation has jumped */
-                    next_instr = this_instr;
+                    next_instr = frame->instr_ptr;
                     DISPATCH();
                 }
             }