diff options
author | Thomas Heller <theller@ctypes.org> | 2007-08-31 08:56:50 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2007-08-31 08:56:50 (GMT) |
commit | 20594ccf07bc9907854dc751175899e3a673f89e (patch) | |
tree | 9178d9649850dd403a0e0cdd29c71f490004857d /Objects | |
parent | 57e3b68c220ef2a6387419cef69ff1d1c7f283cf (diff) | |
download | cpython-20594ccf07bc9907854dc751175899e3a673f89e.zip cpython-20594ccf07bc9907854dc751175899e3a673f89e.tar.gz cpython-20594ccf07bc9907854dc751175899e3a673f89e.tar.bz2 |
round(1e20) wrongly returned 0.
This fixes test_builtin on windows.
(bug was introduced by the merge of the int/long unification branch,
rev 53421)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/longobject.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index cdf8b99..b7328fd 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -260,7 +260,6 @@ PyLong_FromDouble(double dval) "cannot convert float infinity to int"); return NULL; } - CHECK_SMALL_INT((int)dval); if (dval < 0.0) { neg = 1; dval = -dval; |