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

Skip to content

Commit e1040e2

Browse files
committed
Issue #18909: Fix _tkinter.tkapp.interpaddr() on Windows 64-bit, don't cast
64-bit pointer to long (32 bits).
1 parent e93b63b commit e1040e2

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
@@ -66,6 +66,9 @@ Core and Builtins
6666
Library
6767
-------
6868

69+
- Issue #18909: Fix _tkinter.tkapp.interpaddr() on Windows 64-bit, don't cast
70+
64-bit pointer to long (32 bits).
71+
6972
- Issue #18876: The FileIO.mode attribute now better reflects the actual mode
7073
under which the file was opened. Patch by Erik Bray.
7174

Modules/_tkinter.c

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

2691-
return PyLong_FromLong((long)Tkapp_Interp(self));
2691+
return PyLong_FromVoidPtr(Tkapp_Interp(self));
26922692
}
26932693

26942694
static PyObject *

0 commit comments

Comments
 (0)