summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-09-04 22:23:08 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-09-04 22:23:08 (GMT)
commit555e57de1951aa74e94fcc07778b87fff9b61843 (patch)
tree6abf09eedfa82fcdc1ce58b3967c9dda6952945b /Modules
parente619427f7eb17c370f31c6d4f7625eda8a0e9dce (diff)
parente1040e276b11f21b7007c139269c38d5eba04f5e (diff)
downloadcpython-555e57de1951aa74e94fcc07778b87fff9b61843.zip
cpython-555e57de1951aa74e94fcc07778b87fff9b61843.tar.gz
cpython-555e57de1951aa74e94fcc07778b87fff9b61843.tar.bz2
(Merge 3.3) 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 9a0db0e..bef7837 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -2462,7 +2462,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 *