summaryrefslogtreecommitdiffstats
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-08-24 16:15:19 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-08-24 16:15:19 (GMT)
commitce694b78fb89a769ec431dd0cf0ce4408ff693d3 (patch)
tree2819327027e1f311d9feafb8ff52962bc651ecf3 /Objects/bytesobject.c
parent3ce5d9207e66d61d4b0502cf47ed2d2bcdd2212f (diff)
downloadcpython-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.c2
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;