Fixed yet another compiler warning of 64bit builds.

Reviewed by Georg Brandl.
This commit is contained in:
Christian Heimes 2008-08-24 16:15:19 +00:00
parent 3ce5d9207e
commit ce694b78fb
1 changed files with 1 additions and 1 deletions

View 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;