From: Thomas Heller Date: Fri, 31 Aug 2007 08:56:50 +0000 (+0000) Subject: round(1e20) wrongly returned 0. X-Git-Tag: v3.0a1~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20594ccf07bc9907854dc751175899e3a673f89e;p=thirdparty%2FPython%2Fcpython.git 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) --- diff --git a/Objects/longobject.c b/Objects/longobject.c index cdf8b99cafa5..b7328fd8630c 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;