aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-10-26 16:30:18 +0100
committerGitHub <noreply@github.com>2023-10-26 16:30:18 +0100
commita0c414c35d0dc0d44a885fda448652e23de2482c (patch)
tree014f5cb67924fcc0ac17d97aeb879dc05a6ccac0 /Python/bytecodes.c
parent309efb39dc005a834bb67e9a6f27b6689f00ec9d (diff)
downloadcpython-a0c414c35d0dc0d44a885fda448652e23de2482c.tar.gz
cpython-a0c414c35d0dc0d44a885fda448652e23de2482c.zip
gh-111354: define names for RESUME oparg values (#111365)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r--Python/bytecodes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index e101efaae4c..2d7b5ba21ea 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -147,7 +147,7 @@ dummy_func(
next_instr--;
}
else {
- if (oparg < 2) {
+ if (oparg < RESUME_AFTER_YIELD_FROM) {
CHECK_EVAL_BREAKER();
}
next_instr[-1].op.code = RESUME_CHECK;