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)
This commit is contained in:
Thomas Heller 2007-08-31 08:56:50 +00:00
parent 57e3b68c22
commit 20594ccf07
1 changed files with 0 additions and 1 deletions

View File

@ -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;