mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Avoid useless "++" at the end of functions
Warnings found by the Clang Static Analyzer.
This commit is contained in:
parent
25095b2be6
commit
97e561ef24
3 changed files with 6 additions and 6 deletions
|
|
@ -612,9 +612,9 @@ set_repr(PySetObject *so)
|
|||
*u++ = '{';
|
||||
/* Omit the brackets from the listrepr */
|
||||
Py_UNICODE_COPY(u, PyUnicode_AS_UNICODE(listrepr)+1,
|
||||
PyUnicode_GET_SIZE(listrepr)-2);
|
||||
newsize-2);
|
||||
u += newsize-2;
|
||||
*u++ = '}';
|
||||
*u = '}';
|
||||
}
|
||||
Py_DECREF(listrepr);
|
||||
if (Py_TYPE(so) != &PySet_Type) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue