Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce694b7

Browse files
committed
Fixed yet another compiler warning of 64bit builds.
Reviewed by Georg Brandl.
1 parent 3ce5d92 commit ce694b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/bytesobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3212,7 +3212,7 @@ _PyBytes_FormatLong(PyObject *val, int flags, int prec, int type,
32123212
int numnondigits = 0;
32133213

32143214
/* Avoid exceeding SSIZE_T_MAX */
3215-
if (prec > PY_SSIZE_T_MAX-3) {
3215+
if (prec > INT_MAX-3) {
32163216
PyErr_SetString(PyExc_OverflowError,
32173217
"precision too large");
32183218
return NULL;

0 commit comments

Comments
 (0)