Commits

Thomas Heller committed 958c4cc

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)

Comments (0)

Files changed (1)

Objects/longobject.c

 			"cannot convert float infinity to int");
 		return NULL;
 	}
-	CHECK_SMALL_INT((int)dval);
 	if (dval < 0.0) {
 		neg = 1;
 		dval = -dval;