Commit 555e57de authored by Victor Stinner's avatar Victor Stinner

(Merge 3.3) Issue #18909: Fix _tkinter.tkapp.interpaddr() on Windows 64-bit,

don't cast 64-bit pointer to long (32 bits).
parents e619427f e1040e27
...@@ -54,6 +54,9 @@ Core and Builtins ...@@ -54,6 +54,9 @@ Core and Builtins
Library Library
------- -------
- Issue #18909: Fix _tkinter.tkapp.interpaddr() on Windows 64-bit, don't cast
64-bit pointer to long (32 bits).
- Issue #18876: The FileIO.mode attribute now better reflects the actual mode - Issue #18876: The FileIO.mode attribute now better reflects the actual mode
under which the file was opened. Patch by Erik Bray. under which the file was opened. Patch by Erik Bray.
......
...@@ -2462,7 +2462,7 @@ Tkapp_InterpAddr(PyObject *self, PyObject *args) ...@@ -2462,7 +2462,7 @@ Tkapp_InterpAddr(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, ":interpaddr")) if (!PyArg_ParseTuple(args, ":interpaddr"))
return NULL; return NULL;
return PyLong_FromLong((long)Tkapp_Interp(self)); return PyLong_FromVoidPtr(Tkapp_Interp(self));
} }
static PyObject * static PyObject *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment