From 4339460e5d6e7ef75ea0ea499a7da5a763439b12 Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Tue, 23 Aug 2022 13:21:11 +0100 Subject: [PATCH] Revert "long long --> uintptr_t, and added a comment clarifying that the pointer is used as a unique ID" This reverts commit 2818fd3d13f363596abbff50ef2223ca8fb2cde9. --- Python/compile.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Python/compile.c b/Python/compile.c index c7f2bf0033008a..1f9e5ca5dd743f 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -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(