summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-26 11:53:47 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-26 11:53:47 (GMT)
commit97e561ef24b6270d0000e21be3afb994caefcd8f (patch)
tree8f9bef696c8ed0b593c618f81150b7e2bca61695 /Python/compile.c
parent25095b2be655cbe88a05e99f6956aa29cf6207d9 (diff)
downloadcpython-97e561ef24b6270d0000e21be3afb994caefcd8f.zip
cpython-97e561ef24b6270d0000e21be3afb994caefcd8f.tar.gz
cpython-97e561ef24b6270d0000e21be3afb994caefcd8f.tar.bz2
Avoid useless "++" at the end of functions
Warnings found by the Clang Static Analyzer.
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 53f5a12..d195967 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -3747,11 +3747,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;
@@ -3796,7 +3796,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;
}