]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-103731: Remove unneeded checks for TCL_WIDE_INT_TYPE (GH-103732)
authorChristopher Chavez <chrischavez@gmx.us>
Thu, 27 Jul 2023 08:25:19 +0000 (03:25 -0500)
committerGitHub <noreply@github.com>
Thu, 27 Jul 2023 08:25:19 +0000 (11:25 +0300)
Modules/_tkinter.c

index 406e01cd75ffd702ecfc2b391c84599f49524932..663b4117683629528030ba3c29cd9fbaa6c6e03e 100644 (file)
@@ -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);