From: Victor Stinner Date: Wed, 4 Sep 2013 22:22:24 +0000 (+0200) Subject: Issue #18909: Fix _tkinter.tkapp.interpaddr() on Windows 64-bit, don't cast X-Git-Tag: v3.4.0a2~30^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1040e276b11f21b7007c139269c38d5eba04f5e;p=python Issue #18909: Fix _tkinter.tkapp.interpaddr() on Windows 64-bit, don't cast 64-bit pointer to long (32 bits). --- diff --git a/Misc/NEWS b/Misc/NEWS index 9a3ace5ce3..c7dbe2993a 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -66,6 +66,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. diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index f049102d9a..e6b72d3917 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -2688,7 +2688,7 @@ Tkapp_InterpAddr(PyObject *self, PyObject *args) if (!PyArg_ParseTuple(args, ":interpaddr")) return NULL; - return PyLong_FromLong((long)Tkapp_Interp(self)); + return PyLong_FromVoidPtr(Tkapp_Interp(self)); } static PyObject *