diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-26 11:53:47 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-26 11:53:47 (GMT) |
commit | 97e561ef24b6270d0000e21be3afb994caefcd8f (patch) | |
tree | 8f9bef696c8ed0b593c618f81150b7e2bca61695 /Objects/setobject.c | |
parent | 25095b2be655cbe88a05e99f6956aa29cf6207d9 (diff) | |
download | cpython-97e561ef24b6270d0000e21be3afb994caefcd8f.zip cpython-97e561ef24b6270d0000e21be3afb994caefcd8f.tar.gz cpython-97e561ef24b6270d0000e21be3afb994caefcd8f.tar.bz2 |
Avoid useless "++" at the end of functions
Warnings found by the Clang Static Analyzer.
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r-- | Objects/setobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ 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) { |