Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4339460

Browse files
committed
Revert "long long --> uintptr_t, and added a comment clarifying that the pointer is used as a unique ID"
This reverts commit 2818fd3.
1 parent 2818fd3 commit 4339460

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Python/compile.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9704,10 +9704,9 @@ cfg_to_instructions(cfg_builder *g)
97049704
for (int i = 0; i < b->b_iused; i++) {
97059705
struct instr *instr = &b->b_instr[i];
97069706
struct location loc = instr->i_loc;
9707-
uintptr_t arg = instr->i_oparg;
9707+
long long arg = instr->i_oparg;
97089708
if (HAS_TARGET(instr->i_opcode)) {
9709-
/* Use the address of the block as its unique ID (for the label) */
9710-
arg = (uintptr_t)instr->i_target;
9709+
arg = (long long)instr->i_target;
97119710
}
97129711

97139712
PyObject *inst_tuple = Py_BuildValue(

0 commit comments

Comments
 (0)