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;