diff --git a/Objects/floatobject.c b/Objects/floatobject.c index a3c4e455483..a05b3c6a049 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -1495,12 +1495,6 @@ float_as_integer_ratio(PyObject *v, PyObject *unused) py_exponent = NULL; } - /* Returns ints instead of longs where possible */ - INPLACE_UPDATE(numerator, PyNumber_Int(numerator)); - if (numerator == NULL) goto error; - INPLACE_UPDATE(denominator, PyNumber_Int(denominator)); - if (denominator == NULL) goto error; - result_pair = PyTuple_Pack(2, numerator, denominator); #undef INPLACE_UPDATE