mirror of https://github.com/python/cpython.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)
This commit is contained in:
parent
57e3b68c22
commit
20594ccf07
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue