mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Change r60575 broke test_compile:
there is no need to emit co_lnotab item when both offsets are zeros.
This commit is contained in:
parent
6fd03bb607
commit
99af7dbc07
2 changed files with 12 additions and 0 deletions
|
@ -3560,6 +3560,9 @@ assemble_lnotab(struct assembler *a, struct instr *i)
|
|||
assert(d_bytecode >= 0);
|
||||
assert(d_lineno >= 0);
|
||||
|
||||
if(d_bytecode == 0 && d_lineno == 0)
|
||||
return 1;
|
||||
|
||||
if (d_bytecode > 255) {
|
||||
int j, nbytes, ncodes = d_bytecode / 255;
|
||||
nbytes = a->a_lnotab_off + 2 * ncodes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue