diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2022-07-22 18:04:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-22 18:04:20 (GMT) |
commit | e402b26b7fb953a2f0c17a0044bb6d6cbd726e54 (patch) | |
tree | b0b4dc8fd76d64028e0018066de86900949364e4 /Python/compile.c | |
parent | 79d2f549adcbbefd4f2c0a0c9dd572bbbf252c62 (diff) | |
download | cpython-e402b26b7fb953a2f0c17a0044bb6d6cbd726e54.zip cpython-e402b26b7fb953a2f0c17a0044bb6d6cbd726e54.tar.gz cpython-e402b26b7fb953a2f0c17a0044bb6d6cbd726e54.tar.bz2 |
GH-95113: Don't use EXTENDED_ARG_QUICK in unquickened code (GH-95121)
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/compile.c b/Python/compile.c index 52b7d92..9db61fb 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -211,13 +211,13 @@ write_instr(_Py_CODEUNIT *codestr, struct instr *instruction, int ilen) int caches = _PyOpcode_Caches[opcode]; switch (ilen - caches) { case 4: - *codestr++ = _Py_MAKECODEUNIT(EXTENDED_ARG_QUICK, (oparg >> 24) & 0xFF); + *codestr++ = _Py_MAKECODEUNIT(EXTENDED_ARG, (oparg >> 24) & 0xFF); /* fall through */ case 3: - *codestr++ = _Py_MAKECODEUNIT(EXTENDED_ARG_QUICK, (oparg >> 16) & 0xFF); + *codestr++ = _Py_MAKECODEUNIT(EXTENDED_ARG, (oparg >> 16) & 0xFF); /* fall through */ case 2: - *codestr++ = _Py_MAKECODEUNIT(EXTENDED_ARG_QUICK, (oparg >> 8) & 0xFF); + *codestr++ = _Py_MAKECODEUNIT(EXTENDED_ARG, (oparg >> 8) & 0xFF); /* fall through */ case 1: *codestr++ = _Py_MAKECODEUNIT(opcode, oparg & 0xFF); |