commit | 97e561ef24b6270d0000e21be3afb994caefcd8f | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Thu May 26 13:53:47 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Thu May 26 13:53:47 2011 +0200 |
tree | 8f9bef696c8ed0b593c618f81150b7e2bca61695 | |
parent | 25095b2be655cbe88a05e99f6956aa29cf6207d9 [diff] [blame] |
Avoid useless "++" at the end of functions Warnings found by the Clang Static Analyzer.
diff --git a/Objects/setobject.c b/Objects/setobject.c index 48edad8..22243ea 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c
@@ -612,9 +612,9 @@ *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) {