summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/modules
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-05-25 20:42:30 +1000
committerDamien George <damien.p.george@gmail.com>2017-05-25 20:42:30 +1000
commit8f064e469d551ab51a960cebf011e34af5e7fa58 (patch)
tree163cf13f492f52b547efbc74ec382a17f54b63cb /esp8266/modules
parent04d05db27ec4a160dcb3d3ff2934184fef455dbf (diff)
downloadmicropython-8f064e469d551ab51a960cebf011e34af5e7fa58.tar.gz
micropython-8f064e469d551ab51a960cebf011e34af5e7fa58.zip
py/emitbc: Fix bug with BC emitter computing Python stack size.
Previous to this patch the mp_emit_bc_adjust_stack_size function would adjust the current stack size but would not increase the maximum stack size if the current size went above it. This meant that certain Python code (eg a try-finally block with no statements inside it) would not have enough Python stack allocated to it. This patch fixes the problem by always checking if the current stack size goes above the maximum, and adjusting the latter if it does.
Diffstat (limited to 'esp8266/modules')
0 files changed, 0 insertions, 0 deletions