Skip to content

Commit

Permalink
Use a uintptr_t cast instead of a long long constant suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
tonybaloney committed Oct 31, 2023
1 parent 5de75d4 commit 5871d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/crossinterp.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ _bool_shared(PyThreadState *tstate, PyObject *obj,
_PyCrossInterpreterData *data)
{
_PyCrossInterpreterData_Init(data, tstate->interp,
(void *) (Py_IsTrue(obj) ? 1ll : 0ll), NULL,
(void *) (Py_IsTrue(obj) ? (uintptr_t) 1 : (uintptr_t) 0), NULL,
_new_bool_object);
// data->obj and data->free remain NULL
return 0;
Expand Down

0 comments on commit 5871d77

Please sign in to comment.