Skip to content

Commit 66d5609

Browse files
committed
assume that oparg is < (1<<30)
1 parent 430b4b9 commit 66d5609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/compile.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ basicblock_addop(basicblock *b, int opcode, int oparg,
12981298
assert(IS_WITHIN_OPCODE_RANGE(opcode));
12991299
assert(!IS_ASSEMBLER_OPCODE(opcode));
13001300
assert(HAS_ARG(opcode) || oparg == 0);
1301-
assert(0 <= oparg && oparg <= 2147483647);
1301+
assert(0 <= oparg && oparg < (1 << 30));
13021302
assert((target == NULL) ||
13031303
IS_JUMP_OPCODE(opcode) ||
13041304
IS_BLOCK_PUSH_OPCODE(opcode));

0 commit comments

Comments
 (0)