diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-09-04 22:22:24 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-09-04 22:22:24 (GMT) |
commit | e1040e276b11f21b7007c139269c38d5eba04f5e (patch) | |
tree | af55807a777fc84f9f8e9d2f7dc0ecfcfc62b22d /Modules/_tkinter.c | |
parent | e93b63b74b101c65807af7d9311de70012a2e49d (diff) | |
download | cpython-e1040e276b11f21b7007c139269c38d5eba04f5e.zip cpython-e1040e276b11f21b7007c139269c38d5eba04f5e.tar.gz cpython-e1040e276b11f21b7007c139269c38d5eba04f5e.tar.bz2 |
Issue #18909: Fix _tkinter.tkapp.interpaddr() on Windows 64-bit, don't cast
64-bit pointer to long (32 bits).
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r-- | Modules/_tkinter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index f049102..e6b72d3 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 * |