Commit 20594ccf authored by Thomas Heller's avatar Thomas Heller

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)
parent 57e3b68c
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment