summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-27 14:46:51 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-27 14:46:51 (GMT)
commit4f2dab5c337f202b8fe3058108efc40cb1a0a724 (patch)
tree52e3a979f3f5a521f404d07aa7fc1d1107348557 /Objects
parent43b068648e81d951f78d9f1cf1cd8f42731e164e (diff)
downloadcpython-4f2dab5c337f202b8fe3058108efc40cb1a0a724.zip
cpython-4f2dab5c337f202b8fe3058108efc40cb1a0a724.tar.gz
cpython-4f2dab5c337f202b8fe3058108efc40cb1a0a724.tar.bz2
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.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/setobject.c2
-rw-r--r--Objects/unicodeobject.c2
2 files changed, 2 insertions, 2 deletions
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 @@ set_repr(PySetObject *so)
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 @@ PyUnicode_EncodeDecimal(Py_UNICODE *s,
}
}
/* 0-terminate the output string */
- *output = '\0';
+ *output++ = '\0';
Py_XDECREF(exc);
Py_XDECREF(errorHandler);
return 0;