Discussion:
[Python-3000-checkins] r66010 - python/branches/py3k/Objects/bytesobject.c
christian.heimes
2008-08-24 16:15:19 UTC
Permalink
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;

Loading...