diff options
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r-- | Objects/floatobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 32a0de1..eb60659 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -1494,13 +1494,13 @@ float_as_integer_ratio(PyObject *v, PyObject *unused) /* fold in 2**exponent */ if (exponent > 0) { - Py_XSETREF(numerator, + Py_SETREF(numerator, long_methods->nb_lshift(numerator, py_exponent)); if (numerator == NULL) goto error; } else { - Py_XSETREF(denominator, + Py_SETREF(denominator, long_methods->nb_lshift(denominator, py_exponent)); if (denominator == NULL) goto error; |