summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-09-04 22:26:15 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-09-04 22:26:15 (GMT)
commit930c3c9e43dee8ad65f33d167b0c511cd22f6334 (patch)
tree192215310b63ef4416e5b44ccb96eca9db2ffe70 /Modules
parent213fec4bff53e24626172a9963e4e90d62a3e082 (diff)
downloadcpython-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.c2
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 *