mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Avoid useless "++" at the end of functions
Warnings found by the Clang Static Analyzer.
This commit is contained in:
parent
25095b2be6
commit
97e561ef24
3 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue