Warnings found by the Clang Static Analyzer."
Most people prefer ++ at the end of functions.
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) {
}
}
/* 0-terminate the output string */
- *output = '\0';
+ *output++ = '\0';
Py_XDECREF(exc);
Py_XDECREF(errorHandler);
return 0;
a->a_lnotab_off += 2;
if (d_bytecode) {
*lnotab++ = d_bytecode;
- *lnotab = d_lineno;
+ *lnotab++ = d_lineno;
}
else { /* First line of a block; def stmt, etc. */
*lnotab++ = 0;
- *lnotab = d_lineno;
+ *lnotab++ = d_lineno;
}
a->a_lineno = i->i_lineno;
a->a_lineno_off = a->a_offset;
if (i->i_hasarg) {
assert(size == 3 || size == 6);
*code++ = arg & 0xff;
- *code = arg >> 8;
+ *code++ = arg >> 8;
}
return 1;
}