]> granicus.if.org Git - python/commitdiff
round(1e20) wrongly returned 0.
authorThomas Heller <theller@ctypes.org>
Fri, 31 Aug 2007 08:56:50 +0000 (08:56 +0000)
committerThomas Heller <theller@ctypes.org>
Fri, 31 Aug 2007 08:56:50 +0000 (08:56 +0000)
This fixes test_builtin on windows.

(bug was introduced by the merge of the int/long unification branch,
rev 53421)

Objects/longobject.c

index cdf8b99cafa519bc92fcb0a9a06e62d8bae52a71..b7328fd8630c942813f05530cac3d854518a7b34 100644 (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;