summaryrefslogtreecommitdiffstats
path: root/Objects/floatobject.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-01-17 10:48:28 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-01-17 10:48:28 (GMT)
commit0156dabadfa5b3fb98eccd597cd97e916978509c (patch)
treed78c38ef7474d4067b5efa095322445dd9b49571 /Objects/floatobject.c
parentbf5c6a97f80acd4eb785250de8053efad51732ee (diff)
downloadcpython-0156dabadfa5b3fb98eccd597cd97e916978509c.zip
cpython-0156dabadfa5b3fb98eccd597cd97e916978509c.tar.gz
cpython-0156dabadfa5b3fb98eccd597cd97e916978509c.tar.bz2
Remove attempted long->int conversions in py3k version of float.as_integer_ratio.
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r--Objects/floatobject.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index a3c4e45..a05b3c6 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