Mercurial > cpython-lru_cache-weakref
diff Modules/_tkinter.c @ 85533:1a65bb15dedf 2.7
Issue #18909: Fix _tkinter.tkapp.interpaddr() on Windows 64-bit, don't cast
64-bit pointer to long (32 bits).
| author | Victor Stinner <victor.stinner@gmail.com> |
|---|---|
| date | Thu, 05 Sep 2013 00:26:15 +0200 |
| parents | 2d96764a66fa |
| children |
line wrap: on
line diff
--- a/Modules/_tkinter.c Wed Sep 04 20:46:33 2013 +0200 +++ b/Modules/_tkinter.c Thu Sep 05 00:26:15 2013 +0200 @@ -2814,7 +2814,7 @@ if (!PyArg_ParseTuple(args, ":interpaddr")) return NULL; - return PyInt_FromLong((long)Tkapp_Interp(self)); + return PyLong_FromVoidPtr(Tkapp_Interp(self)); } static PyObject *
