diff options
author | Damien George <damien.p.george@gmail.com> | 2017-06-22 15:05:58 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-06-22 15:05:58 +1000 |
commit | d94bc675e8f3bcf37acf2d88d7c0ce0d9de68672 (patch) | |
tree | 3bead087b6fcecaeb836adf1055e9029e7f763e2 /esp8266/machine_pin.c | |
parent | 44922934f55cb1cb8a64eba4afabb66563d66349 (diff) | |
download | micropython-d94bc675e8f3bcf37acf2d88d7c0ce0d9de68672.tar.gz micropython-d94bc675e8f3bcf37acf2d88d7c0ce0d9de68672.zip |
py/compile: Optimise emitter label indices to save a word of heap.
Previous to this patch, a label with value "0" was used to indicate an
invalid label, but that meant a wasted word (at slot 0) in the array of
label offsets. This patch adjusts the label indices so the first one
starts at 0, and the maximum value indicates an invalid label.
Diffstat (limited to 'esp8266/machine_pin.c')
0 files changed, 0 insertions, 0 deletions