From: Raymond Hettinger Date: Fri, 1 Feb 2008 22:22:50 +0000 (+0000) Subject: labs() takes a long for an input. X-Git-Tag: v2.6a1~316 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ffc667cbd57151705f5a69139351b7c14b24653d;p=python labs() takes a long for an input. --- diff --git a/Objects/floatobject.c b/Objects/floatobject.c index ce6926bf6d..8c7a9a3b57 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -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;