mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Fixed yet another compiler warning of 64bit builds.
Reviewed by Georg Brandl.
This commit is contained in:
parent
3ce5d9207e
commit
ce694b78fb
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue