diff options
| author | Mark Dickinson <dickinsm@gmail.com> | 2009-08-28 20:46:24 +0000 |
|---|---|---|
| committer | Mark Dickinson <dickinsm@gmail.com> | 2009-08-28 20:46:24 +0000 |
| commit | 2fdd58ad18a046db9fc099f03bb26ab6b21c972b (patch) | |
| tree | 8ecd22164e9a0662c9cff1fb1d5a2af1fd4a30c8 /Objects/unicodeobject.c | |
| parent | f7cda5287de0e33963c9fa09e2143bd2d169bd69 (diff) | |
| download | cpython-git-2fdd58ad18a046db9fc099f03bb26ab6b21c972b.tar.gz | |
Silence gcc 'comparison always false' warning
Diffstat (limited to 'Objects/unicodeobject.c')
| -rw-r--r-- | Objects/unicodeobject.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 0b23e71f3d..c4b490295f 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -8325,14 +8325,16 @@ formatfloat(Py_UNICODE *buf, 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'; |
