summaryrefslogtreecommitdiffstats
path: root/Objects/floatobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-11 06:57:37 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-11 06:57:37 (GMT)
commit59865e7fe158bcedc0c2b6252593650b018cf738 (patch)
tree8c11c78ca7a4bb7defc9b37f45c1bf92242814c6 /Objects/floatobject.c
parenta29f7204937dc2600f6cdf6af91ef0c30dba36dc (diff)
parent864b63c33f8f715121efeb9fce031f9c2534c27a (diff)
downloadcpython-59865e7fe158bcedc0c2b6252593650b018cf738.zip
cpython-59865e7fe158bcedc0c2b6252593650b018cf738.tar.gz
cpython-59865e7fe158bcedc0c2b6252593650b018cf738.tar.bz2
Issue #26200: Restored more safe usages of Py_SETREF.
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r--Objects/floatobject.c4
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;