diff options
author | Tom Collins <tom.collins@digi.com> | 2017-06-30 16:23:29 -0700 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-07-07 11:32:22 +1000 |
commit | 145796f037715e180b441b38c1ec1ba45ff77797 (patch) | |
tree | c709871f107f103dfdccd7c6975cd4f07a006477 /py/emitbc.c | |
parent | ed52955c6bb05d2a08c009ed24ab3214c88c6fb1 (diff) |
py,extmod: Some casts and minor refactors to quiet compiler warnings.
Diffstat (limited to 'py/emitbc.c')
-rw-r--r-- | py/emitbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emitbc.c b/py/emitbc.c index ec12a62c6..127bf0bf9 100644 --- a/py/emitbc.c +++ b/py/emitbc.c @@ -902,7 +902,7 @@ void mp_emit_bc_make_closure(emit_t *emit, scope_t *scope, mp_uint_t n_closed_ov emit_write_bytecode_byte(emit, n_closed_over); } else { assert(n_closed_over <= 255); - emit_bc_pre(emit, -2 - n_closed_over + 1); + emit_bc_pre(emit, -2 - (mp_int_t)n_closed_over + 1); emit_write_bytecode_byte_raw_code(emit, MP_BC_MAKE_CLOSURE_DEFARGS, scope->raw_code); emit_write_bytecode_byte(emit, n_closed_over); } |