Skip to content

Commit 6e969c8

Browse files
committed
oops
1 parent f168dc5 commit 6e969c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/optimizer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ _PyJit_TryInitializeTracing(
10451045
tracer->initial_state.func = (PyFunctionObject *)Py_NewRef(func);
10461046
tracer->initial_state.executor = (_PyExecutorObject *)Py_XNewRef(current_executor);
10471047
tracer->initial_state.exit = exit;
1048-
tracer->initial_state.stack_depth = (int)((uintptr_t)stack_pointer - (uintptr_t)_PyFrame_Stackbase(frame));
1048+
tracer->initial_state.stack_depth = (int)(stack_pointer - _PyFrame_Stackbase(frame));
10491049
tracer->initial_state.chain_depth = chain_depth;
10501050
tracer->prev_state.dependencies_still_valid = true;
10511051
tracer->prev_state.instr_code = (PyCodeObject *)Py_NewRef(_PyFrame_GetCode(frame));
@@ -1487,7 +1487,7 @@ stack_allocate(_PyUOpInstruction *buffer, _PyUOpInstruction *output, int length)
14871487
write++;
14881488
depth = _PyUop_Caching[uop].entries[depth].output;
14891489
}
1490-
return (int)((uintptr_t)write - (uintptr_t)output);
1490+
return (int)(write - output);
14911491
}
14921492

14931493
static int

0 commit comments

Comments
 (0)