diff options
author | Michael Felt <aixtools@users.noreply.github.com> | 2019-01-11 19:17:03 +0100 |
---|---|---|
committer | Eric Snow <ericsnowcurrently@gmail.com> | 2019-01-11 11:17:03 -0700 |
commit | a909460a09cca79bd051c45b02e650862a57dbd9 (patch) | |
tree | 667494ffad69c0cf624dfae87c641746d27201fe /Python/pystate.c | |
parent | 2a39d251f07d4c620e3b9a1848e3d1eb3067be64 (diff) | |
download | cpython-git-a909460a09cca79bd051c45b02e650862a57dbd9.tar.gz |
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.
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 98882eb758..4dc3b81e4c 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -1467,7 +1467,7 @@ _str_shared(PyObject *obj, _PyCrossInterpreterData *data) static PyObject * _new_long_object(_PyCrossInterpreterData *data) { - return PyLong_FromLongLong((int64_t)(data->data)); + return PyLong_FromLongLong((intptr_t)(data->data)); } static int |