From 20594ccf07bc9907854dc751175899e3a673f89e Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Fri, 31 Aug 2007 08:56:50 +0000 Subject: [PATCH] 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) --- Objects/longobject.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Objects/longobject.c b/Objects/longobject.c index cdf8b99cafa..b7328fd8630 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;