bpo-34569: Fix subinterpreter 32-bit ABI, pystate.c/_new_long_object() (gh-9127)
This fixes ShareableTypeTests.test_int() in Lib/test/test__xxsubinterpreters.py.
This commit is contained in:
parent
2a39d251f0
commit
a909460a09
@ -0,0 +1,2 @@
|
|||||||
|
The experimental PEP 554 data channels now correctly pass negative PyLong
|
||||||
|
objects between subinterpreters on 32-bit systems. Patch by Michael Felt.
|
@ -1467,7 +1467,7 @@ _str_shared(PyObject *obj, _PyCrossInterpreterData *data)
|
|||||||
static PyObject *
|
static PyObject *
|
||||||
_new_long_object(_PyCrossInterpreterData *data)
|
_new_long_object(_PyCrossInterpreterData *data)
|
||||||
{
|
{
|
||||||
return PyLong_FromLongLong((int64_t)(data->data));
|
return PyLong_FromLongLong((intptr_t)(data->data));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user