diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-09 12:27:39 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-09 12:27:39 +0100 |
commit | 78035b995ff7bd518cc1291aa70c966b53510fd9 (patch) | |
tree | b401d96d1a29db9cc7c87beedc9c829cc46e56f8 /py/emitnative.c | |
parent | fc18c8e834a1ed72b9f61d82cd00099a4de1eab4 (diff) | |
download | micropython-78035b995ff7bd518cc1291aa70c966b53510fd9.tar.gz micropython-78035b995ff7bd518cc1291aa70c966b53510fd9.zip |
py, compiler: Clean up and compress scope/compile structures.
Convert int types to uint where sensible, and then to uint8_t or
uint16_t where possible to reduce RAM usage.
Diffstat (limited to 'py/emitnative.c')
-rw-r--r-- | py/emitnative.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emitnative.c b/py/emitnative.c index af8b35f45d..a02b125d0c 100644 --- a/py/emitnative.c +++ b/py/emitnative.c @@ -308,8 +308,8 @@ STATIC void emit_native_set_source_line(emit_t *emit, int source_line) { STATIC void adjust_stack(emit_t *emit, int stack_size_delta) { DEBUG_printf("adjust stack: stack:%d + delta:%d\n", emit->stack_size, stack_size_delta); + assert((int)emit->stack_size + stack_size_delta >= 0); emit->stack_size += stack_size_delta; - assert(emit->stack_size >= 0); if (emit->pass > PASS_1 && emit->stack_size > emit->scope->stack_size) { emit->scope->stack_size = emit->stack_size; } |