diff Objects/unicodeobject.c @ 55750:606e97caeb77 legacy-trunk

Silence gcc 'comparison always false' warning
author Mark Dickinson <dickinsm@gmail.com>
date Fri, 28 Aug 2009 20:46:24 +0000
parents 38d6e4e51af0
children 38a52b672429
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Fri Aug 28 19:23:44 2009 +0000
+++ b/Objects/unicodeobject.c	Fri Aug 28 20:46:24 2009 +0000
@@ -8325,14 +8325,16 @@
         return -1;
     if (prec < 0)
         prec = 6;
+#if SIZEOF_INT > 4
     /* make sure that the decimal representation of precision really does
        need at most 10 digits: platforms with sizeof(int) == 8 exist! */
-    if (prec > 0x7fffffffL) {
+    if (prec > 0x7fffffff) {
         PyErr_SetString(PyExc_OverflowError,
                         "outrageously large precision "
                         "for formatted float");
         return -1;
     }
+#endif
 
     if (type == 'f' && fabs(x) >= 1e50)
         type = 'g';