Skip to content

Commit

Permalink
Revert "long long --> uintptr_t, and added a comment clarifying that …
Browse files Browse the repository at this point in the history
…the pointer is used as a unique ID"

This reverts commit 2818fd3.
  • Loading branch information
iritkatriel committed Aug 23, 2022
1 parent 2818fd3 commit 4339460
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Python/compile.c
Expand Up @@ -9704,10 +9704,9 @@ cfg_to_instructions(cfg_builder *g)
for (int i = 0; i < b->b_iused; i++) {
struct instr *instr = &b->b_instr[i];
struct location loc = instr->i_loc;
uintptr_t arg = instr->i_oparg;
long long arg = instr->i_oparg;
if (HAS_TARGET(instr->i_opcode)) {
/* Use the address of the block as its unique ID (for the label) */
arg = (uintptr_t)instr->i_target;
arg = (long long)instr->i_target;
}

PyObject *inst_tuple = Py_BuildValue(
Expand Down

0 comments on commit 4339460

Please sign in to comment.