[Python-3000-checkins] r57828 - python/branches/py3k/Objects/longobject.c

thomas.heller python-3000-checkins at python.org
Fri Aug 31 10:57:08 CEST 2007


Author: thomas.heller
Date: Fri Aug 31 10:56:50 2007
New Revision: 57828

Modified:
   python/branches/py3k/Objects/longobject.c
Log:
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)


Modified: python/branches/py3k/Objects/longobject.c
==============================================================================
--- python/branches/py3k/Objects/longobject.c	(original)
+++ python/branches/py3k/Objects/longobject.c	Fri Aug 31 10:56:50 2007
@@ -260,7 +260,6 @@
 			"cannot convert float infinity to int");
 		return NULL;
 	}
-	CHECK_SMALL_INT((int)dval);
 	if (dval < 0.0) {
 		neg = 1;
 		dval = -dval;


More information about the Python-3000-checkins mailing list