summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2024-02-12 20:13:13 (GMT)
committerGitHub <noreply@github.com>2024-02-12 20:13:13 (GMT)
commit7861dfd26a41e40c2b4361eb0bb1356b9b4a064b (patch)
treeefedf1257dbc2e4b6be5aaab340194d644d57a0b /Modules/_tkinter.c
parenta82fbc13d0e352b9af7d7ffbef4bc04cf635f07f (diff)
downloadcpython-7861dfd26a41e40c2b4361eb0bb1356b9b4a064b.zip
cpython-7861dfd26a41e40c2b4361eb0bb1356b9b4a064b.tar.gz
cpython-7861dfd26a41e40c2b4361eb0bb1356b9b4a064b.tar.bz2
gh-111140: Adds PyLong_AsNativeBytes and PyLong_FromNative[Unsigned]Bytes functions (GH-114886)
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r--Modules/_tkinter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index f618116..e378986 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -926,7 +926,8 @@ AsObj(PyObject *value)
(unsigned char *)(void *)&wideValue,
sizeof(wideValue),
PY_LITTLE_ENDIAN,
- /* signed */ 1) == 0) {
+ /* signed */ 1,
+ /* with_exceptions */ 1) == 0) {
return Tcl_NewWideIntObj(wideValue);
}
PyErr_Clear();