Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 555e57d

Browse files
committed
(Merge 3.3) Issue #18909: Fix _tkinter.tkapp.interpaddr() on Windows 64-bit,
don't cast 64-bit pointer to long (32 bits).
2 parents e619427 + e1040e2 commit 555e57d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ Core and Builtins
5454
Library
5555
-------
5656

57+
- Issue #18909: Fix _tkinter.tkapp.interpaddr() on Windows 64-bit, don't cast
58+
64-bit pointer to long (32 bits).
59+
5760
- Issue #18876: The FileIO.mode attribute now better reflects the actual mode
5861
under which the file was opened. Patch by Erik Bray.
5962

Modules/_tkinter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2462,7 +2462,7 @@ Tkapp_InterpAddr(PyObject *self, PyObject *args)
24622462
if (!PyArg_ParseTuple(args, ":interpaddr"))
24632463
return NULL;
24642464

2465-
return PyLong_FromLong((long)Tkapp_Interp(self));
2465+
return PyLong_FromVoidPtr(Tkapp_Interp(self));
24662466
}
24672467

24682468
static PyObject *

0 commit comments

Comments
 (0)