Remove attempted long->int conversions in py3k version of float.as_integer_ratio.

This commit is contained in:
Mark Dickinson 2009-01-17 10:48:28 +00:00
parent bf5c6a97f8
commit 0156dabadf
1 changed files with 0 additions and 6 deletions

View File

@ -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