mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Remove attempted long->int conversions in py3k version of float.as_integer_ratio.
This commit is contained in:
parent
bf5c6a97f8
commit
0156dabadf
1 changed files with 0 additions and 6 deletions
|
@ -1495,12 +1495,6 @@ float_as_integer_ratio(PyObject *v, PyObject *unused)
|
||||||
py_exponent = NULL;
|
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);
|
result_pair = PyTuple_Pack(2, numerator, denominator);
|
||||||
|
|
||||||
#undef INPLACE_UPDATE
|
#undef INPLACE_UPDATE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue