mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
in places where Py_DECREF was used.
This commit is contained in:
commit
f01e408c16
23 changed files with 58 additions and 48 deletions
|
@ -96,7 +96,7 @@ unshare_buffer(bytesio *self, size_t size)
|
|||
return -1;
|
||||
memcpy(PyBytes_AS_STRING(new_buf), PyBytes_AS_STRING(self->buf),
|
||||
self->string_size);
|
||||
Py_XSETREF(self->buf, new_buf);
|
||||
Py_SETREF(self->buf, new_buf);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue