diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-10 15:05:12 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-10 15:05:12 (GMT) |
| commit | 763a61ca954a1c5a1b56411dd5e57a7d58afff75 (patch) | |
| tree | 36c3a606196c2a37e8865b5fbf78531e21a032ea /Objects/unicodeobject.c | |
| parent | 149d080871f9bef276a3d4fa251ba6fbc910f770 (diff) | |
| download | cpython-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/unicodeobject.c')
| -rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index d06ce2c..0b81a3c 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -436,7 +436,7 @@ int _PyUnicode_Resize(PyUnicodeObject **unicode, Py_ssize_t length) return -1; Py_UNICODE_COPY(w->str, v->str, length < v->length ? length : v->length); - Py_XSETREF(*unicode, w); + Py_SETREF(*unicode, w); return 0; } |
