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.
diff --git a/Objects/setobject.c b/Objects/setobject.c
index ebfddb3..2e62518 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -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) {
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 309159c..4361908 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -6474,7 +6474,7 @@
}
}
/* 0-terminate the output string */
- *output = '\0';
+ *output++ = '\0';
Py_XDECREF(exc);
Py_XDECREF(errorHandler);
return 0;