]> granicus.if.org Git - python/commitdiff
labs() takes a long for an input.
authorRaymond Hettinger <python@rcn.com>
Fri, 1 Feb 2008 22:22:50 +0000 (22:22 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 1 Feb 2008 22:22:50 +0000 (22:22 +0000)
Objects/floatobject.c

index ce6926bf6d06cca942135fd66fe73a34482f3b22..8c7a9a3b571971c61a1085bc8b6e1af1ee7452c4 100644 (file)
@@ -1158,7 +1158,7 @@ float_as_integer_ratio(PyObject *v, PyObject *unused)
 {
        double self;
        double float_part;
-       int exponent;
+       long exponent;
 
        PyObject *prev;
        PyObject *py_exponent = NULL;