diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-29 18:58:52 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-29 18:58:52 +0000 |
commit | 08d075592f3fa958ac3f24e176bee5ab56e78f49 (patch) | |
tree | 6b09520f0cabc7330dda34bd2da8c17bff3d8b79 /py/emitnative.c | |
parent | 1ba1facaaa112c02fd3dcc1bfcb8e228787629ed (diff) |
py: Fix bug with LOAD_METHOD; fix int->machine_int_t for small int.
LOAD_METHOD bug was: emitbc did not correctly calculate the amount of
stack usage for a LOAD_METHOD operation.
small int bug was: int was being used to pass small ints, when it should
have been machine_int_t.
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 258aa9fce..1e5ea1fa9 100644 --- a/py/emitnative.c +++ b/py/emitnative.c @@ -599,7 +599,7 @@ static void emit_native_load_const_tok(emit_t *emit, mp_token_kind_t tok) { emit_post_push_imm(emit, vtype, val); } -static void emit_native_load_const_small_int(emit_t *emit, int arg) { +static void emit_native_load_const_small_int(emit_t *emit, machine_int_t arg) { emit_pre(emit); if (emit->do_viper_types) { emit_post_push_imm(emit, VTYPE_INT, arg); |