From ce694b78fb89a769ec431dd0cf0ce4408ff693d3 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sun, 24 Aug 2008 16:15:19 +0000 Subject: [PATCH] Fixed yet another compiler warning of 64bit builds. Reviewed by Georg Brandl. --- Objects/bytesobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index 24228eae962..d59e79a22a3 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -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;