diff Objects/setobject.c @ 70436:43ee5ebaa62e

Revert my commit 7ba176c2f558: "Avoid useless "++" at the end of functions Warnings found by the Clang Static Analyzer." Most people prefer ++ at the end of functions.
author Victor Stinner <victor.stinner@haypocalc.com>
date Fri, 27 May 2011 16:46:51 +0200
parents 8b819c982b36
children d0b0fcbb40db
line wrap: on
line diff
--- a/Objects/setobject.c	Fri May 27 09:08:01 2011 -0500
+++ b/Objects/setobject.c	Fri May 27 16:46:51 2011 +0200
@@ -616,7 +616,7 @@
     Py_UNICODE_COPY(u, PyUnicode_AS_UNICODE(listrepr)+1,
                        newsize-2);
     u += newsize-2;
-    *u = '}';
+    *u++ = '}';
     Py_DECREF(listrepr);
 
     if (Py_TYPE(so) != &PySet_Type) {