summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-10 15:05:12 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-10 15:05:12 (GMT)
commit763a61ca954a1c5a1b56411dd5e57a7d58afff75 (patch)
tree36c3a606196c2a37e8865b5fbf78531e21a032ea /Objects/stringobject.c
parent149d080871f9bef276a3d4fa251ba6fbc910f770 (diff)
downloadcpython-763a61ca954a1c5a1b56411dd5e57a7d58afff75.zip
cpython-763a61ca954a1c5a1b56411dd5e57a7d58afff75.tar.gz
cpython-763a61ca954a1c5a1b56411dd5e57a7d58afff75.tar.bz2
Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
in places where Py_DECREF was used.
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index faaa111..f585ffc 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -3865,7 +3865,7 @@ PyString_Concat(register PyObject **pv, register PyObject *w)
return;
}
v = string_concat((PyStringObject *) *pv, w);
- Py_XSETREF(*pv, v);
+ Py_SETREF(*pv, v);
}
void
@@ -4750,7 +4750,7 @@ PyString_InternInPlace(PyObject **p)
t = PyDict_GetItem(interned, (PyObject *)s);
if (t) {
Py_INCREF(t);
- Py_XSETREF(*p, t);
+ Py_SETREF(*p, t);
return;
}