diff options
author | Christopher Chavez <chrischavez@gmx.us> | 2023-07-27 08:25:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 08:25:19 (GMT) |
commit | 6e850c30bb7085c80a97982d00c9c20e7d23ff84 (patch) | |
tree | 83589b53d49167cfae5359801cb630ea5bf6201e /Modules | |
parent | ccd4253752ae2d84a5448281db1a1298ca8d8610 (diff) | |
download | cpython-6e850c30bb7085c80a97982d00c9c20e7d23ff84.zip cpython-6e850c30bb7085c80a97982d00c9c20e7d23ff84.tar.gz cpython-6e850c30bb7085c80a97982d00c9c20e7d23ff84.tar.bz2 |
gh-103731: Remove unneeded checks for TCL_WIDE_INT_TYPE (GH-103732)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_tkinter.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 406e01c..663b411 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -911,16 +911,13 @@ AsObj(PyObject *value) if (PyLong_CheckExact(value)) { int overflow; long longValue; -#ifdef TCL_WIDE_INT_TYPE Tcl_WideInt wideValue; -#endif longValue = PyLong_AsLongAndOverflow(value, &overflow); if (!overflow) { return Tcl_NewLongObj(longValue); } /* If there is an overflow in the long conversion, fall through to wideInt handling. */ -#ifdef TCL_WIDE_INT_TYPE if (_PyLong_AsByteArray((PyLongObject *)value, (unsigned char *)(void *)&wideValue, sizeof(wideValue), @@ -929,7 +926,6 @@ AsObj(PyObject *value) return Tcl_NewWideIntObj(wideValue); } PyErr_Clear(); -#endif /* If there is an overflow in the wideInt conversion, fall through to bignum handling. */ return asBignumObj(value); |