diff options
author | Damien George <damien.p.george@gmail.com> | 2017-06-22 13:50:33 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-06-22 13:50:33 +1000 |
commit | 4c5f108321a8fd3f67f597ca918427eda813c12e (patch) | |
tree | 4da9c137766f24d6a5b47fc9d5b8dac2ebc2b304 /esp8266/machine_pin.c | |
parent | 458cbacb8f62ad0f33024360af61fb797530c65b (diff) | |
download | micropython-4c5f108321a8fd3f67f597ca918427eda813c12e.tar.gz micropython-4c5f108321a8fd3f67f597ca918427eda813c12e.zip |
py/compile: Fix bug with break/continue in else of optimised for-range.
This patch fixes a bug whereby the Python stack was not correctly reset if
there was a break/continue statement in the else black of an optimised
for-range loop.
For example, in the following code the "j" variable from the inner for loop
was not being popped off the Python stack:
for i in range(4):
for j in range(4):
pass
else:
continue
This is now fixed with this patch.
Diffstat (limited to 'esp8266/machine_pin.c')
0 files changed, 0 insertions, 0 deletions