Commit ce694b78 authored by Christian Heimes's avatar Christian Heimes

Fixed yet another compiler warning of 64bit builds.

Reviewed by Georg Brandl.
parent 3ce5d920
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment