From: Christian Heimes <christian@cheimes.de>
Date: Sun, 24 Aug 2008 16:15:19 +0000 (+0000)
Subject: Fixed yet another compiler warning of 64bit builds.
X-Git-Tag: v3.0rc1~178
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce694b78fb89a769ec431dd0cf0ce4408ff693d3;p=python

Fixed yet another compiler warning of 64bit builds.
Reviewed by Georg Brandl.
---

diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 24228eae96..d59e79a22a 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;