diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-26 13:53:47 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-26 13:53:47 +0200 |
commit | 9b94667b79d7b7152657519e1903cdcae790be88 (patch) | |
tree | 2a2f3beabefc5e83c6be09c294ae6101d7d91f20 /Python/compile.c | |
parent | 54ecf696bb489a653324f5b8a20018495b8f0142 (diff) | |
download | cpython-9b94667b79d7b7152657519e1903cdcae790be88.tar.gz |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/compile.c b/Python/compile.c index 53f5a12cc3..d195967e7c 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; } |