diff options
author | Christian Heimes <christian@cheimes.de> | 2008-08-24 16:15:19 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-08-24 16:15:19 (GMT) |
commit | ce694b78fb89a769ec431dd0cf0ce4408ff693d3 (patch) | |
tree | 2819327027e1f311d9feafb8ff52962bc651ecf3 /Objects/bytesobject.c | |
parent | 3ce5d9207e66d61d4b0502cf47ed2d2bcdd2212f (diff) | |
download | cpython-ce694b78fb89a769ec431dd0cf0ce4408ff693d3.zip cpython-ce694b78fb89a769ec431dd0cf0ce4408ff693d3.tar.gz cpython-ce694b78fb89a769ec431dd0cf0ce4408ff693d3.tar.bz2 |
Fixed yet another compiler warning of 64bit builds.
Reviewed by Georg Brandl.
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r-- | Objects/bytesobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index 24228ea..d59e79a 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -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; |