mirror of https://github.com/python/cpython
Fixed yet another compiler warning of 64bit builds.
Reviewed by Georg Brandl.
This commit is contained in:
parent
3ce5d9207e
commit
ce694b78fb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue