diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-01-17 10:48:28 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-01-17 10:48:28 (GMT) |
commit | 0156dabadfa5b3fb98eccd597cd97e916978509c (patch) | |
tree | d78c38ef7474d4067b5efa095322445dd9b49571 | |
parent | bf5c6a97f80acd4eb785250de8053efad51732ee (diff) | |
download | cpython-0156dabadfa5b3fb98eccd597cd97e916978509c.zip cpython-0156dabadfa5b3fb98eccd597cd97e916978509c.tar.gz cpython-0156dabadfa5b3fb98eccd597cd97e916978509c.tar.bz2 |
Remove attempted long->int conversions in py3k version of float.as_integer_ratio.
-rw-r--r-- | Objects/floatobject.c | 6 |
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 |