GH-104584: Fix incorrect uoperands (GH-107513)

This commit is contained in:
Brandt Bucher 2023-07-31 14:16:57 -07:00 committed by GitHub
parent de51dede5b
commit 5e584eb704
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -579,7 +579,8 @@ pop_jump_if_bool:
for (int i = 0; i < nuops; i++) {
oparg = orig_oparg;
uint64_t operand = 0;
int offset = expansion->uops[i].offset;
// Add one to account for the actual opcode/oparg pair:
int offset = expansion->uops[i].offset + 1;
switch (expansion->uops[i].size) {
case OPARG_FULL:
if (extras && OPCODE_HAS_JUMP(opcode)) {