diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-09-04 22:26:15 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-09-04 22:26:15 (GMT) |
commit | 930c3c9e43dee8ad65f33d167b0c511cd22f6334 (patch) | |
tree | 192215310b63ef4416e5b44ccb96eca9db2ffe70 /Modules | |
parent | 213fec4bff53e24626172a9963e4e90d62a3e082 (diff) | |
download | cpython-930c3c9e43dee8ad65f33d167b0c511cd22f6334.zip cpython-930c3c9e43dee8ad65f33d167b0c511cd22f6334.tar.gz cpython-930c3c9e43dee8ad65f33d167b0c511cd22f6334.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')
-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 52ee881..0627d60 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -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 * |