Remove attempted long->int conversions in py3k version of float.as_integer_ratio.
This commit is contained in:
parent
bf5c6a97f8
commit
0156dabadf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue