]> granicus.if.org Git - python/commitdiff
Fixed yet another compiler warning of 64bit builds.
authorChristian Heimes <christian@cheimes.de>
Sun, 24 Aug 2008 16:15:19 +0000 (16:15 +0000)
committerChristian Heimes <christian@cheimes.de>
Sun, 24 Aug 2008 16:15:19 +0000 (16:15 +0000)
Reviewed by Georg Brandl.

Objects/bytesobject.c

index 24228eae96216439ede908cc51a0e790b40372f4..d59e79a22a3126841c1eee3ab5823be9a0de73e0 100644 (file)
@@ -3212,7 +3212,7 @@ _PyBytes_FormatLong(PyObject *val, int flags, int prec, int type,
        int numnondigits = 0;
 
        /* Avoid exceeding SSIZE_T_MAX */
-       if (prec > PY_SSIZE_T_MAX-3) {
+       if (prec > INT_MAX-3) {
                PyErr_SetString(PyExc_OverflowError,
                                "precision too large");
                return NULL;