Skip to content

Commit 2818fd3

Browse files
committed
long long --> uintptr_t, and added a comment clarifying that the pointer is used as a unique ID
1 parent a68483a commit 2818fd3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Python/compile.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -9704,9 +9704,10 @@ 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-
long long arg = instr->i_oparg;
9707+
uintptr_t arg = instr->i_oparg;
97089708
if (HAS_TARGET(instr->i_opcode)) {
9709-
arg = (long long)instr->i_target;
9709+
/* Use the address of the block as its unique ID (for the label) */
9710+
arg = (uintptr_t)instr->i_target;
97109711
}
97119712

97129713
PyObject *inst_tuple = Py_BuildValue(

0 commit comments

Comments
 (0)