summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
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 /Python/compile.c
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 'Python/compile.c')
-rw-r--r--Python/compile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 96d01cd..34e7603 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -3744,11 +3744,11 @@ assemble_lnotab(struct assembler *a, struct instr *i)
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;
@@ -3793,7 +3793,7 @@ assemble_emit(struct assembler *a, struct instr *i)
if (i->i_hasarg) {
assert(size == 3 || size == 6);
*code++ = arg & 0xff;
- *code = arg >> 8;
+ *code++ = arg >> 8;
}
return 1;
}