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/emitbc.c | |
parent | fc18c8e834a1ed72b9f61d82cd00099a4de1eab4 (diff) |
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/emitbc.c')
-rw-r--r-- | py/emitbc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/emitbc.c b/py/emitbc.c index 50bb0016e..b2edc25e0 100644 --- a/py/emitbc.c +++ b/py/emitbc.c @@ -321,6 +321,7 @@ STATIC void emit_bc_delete_id(emit_t *emit, qstr qstr) { } STATIC void emit_bc_pre(emit_t *emit, int stack_size_delta) { + assert((int)emit->stack_size + stack_size_delta >= 0); emit->stack_size += stack_size_delta; if (emit->stack_size > emit->scope->stack_size) { emit->scope->stack_size = emit->stack_size; |