Issue #18909: Fix _tkinter.tkapp.interpaddr() on Windows 64-bit, don't cast

64-bit pointer to long (32 bits).
This commit is contained in:
Victor Stinner 2013-09-05 00:26:15 +02:00
parent 213fec4bff
commit 930c3c9e43
2 changed files with 4 additions and 1 deletions

View File

@ -32,6 +32,9 @@ Core and Builtins
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
under which the file was opened. Patch by Erik Bray.

View File

@ -2814,7 +2814,7 @@ Tkapp_InterpAddr(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, ":interpaddr"))
return NULL;
return PyInt_FromLong((long)Tkapp_Interp(self));
return PyLong_FromVoidPtr(Tkapp_Interp(self));
}
static PyObject *