From ffc667cbd57151705f5a69139351b7c14b24653d Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 1 Feb 2008 22:22:50 +0000 Subject: [PATCH] labs() takes a long for an input. --- Objects/floatobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/floatobject.c b/Objects/floatobject.c index ce6926bf6d0..8c7a9a3b571 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;