[Python-3000-checkins] r66010 - python/branches/py3k/Objects/bytesobject.c

christian.heimes python-3000-checkins at python.org
Sun Aug 24 18:15:19 CEST 2008


Author: christian.heimes
Date: Sun Aug 24 18:15:19 2008
New Revision: 66010

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

Modified:
   python/branches/py3k/Objects/bytesobject.c

Modified: python/branches/py3k/Objects/bytesobject.c
==============================================================================
--- python/branches/py3k/Objects/bytesobject.c	(original)
+++ python/branches/py3k/Objects/bytesobject.c	Sun Aug 24 18:15:19 2008
@@ -3212,7 +3212,7 @@
 	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;


More information about the Python-3000-checkins mailing list