aboutsummaryrefslogtreecommitdiff
path: root/py/emit.h
diff options
context:
space:
mode:
authorDamien George2014-01-29 18:58:52 +0000
committerDamien George2014-01-29 18:58:52 +0000
commit08d075592f3fa958ac3f24e176bee5ab56e78f49 (patch)
tree6b09520f0cabc7330dda34bd2da8c17bff3d8b79 /py/emit.h
parent1ba1facaaa112c02fd3dcc1bfcb8e228787629ed (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/emit.h')
-rw-r--r--py/emit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emit.h b/py/emit.h
index fc5538f58..ff33a8f6d 100644
--- a/py/emit.h
+++ b/py/emit.h
@@ -34,7 +34,7 @@ typedef struct _emit_method_table_t {
void (*import_from)(emit_t *emit, qstr qstr);
void (*import_star)(emit_t *emit);
void (*load_const_tok)(emit_t *emit, mp_token_kind_t tok);
- void (*load_const_small_int)(emit_t *emit, int arg);
+ void (*load_const_small_int)(emit_t *emit, machine_int_t arg);
void (*load_const_int)(emit_t *emit, qstr qstr);
void (*load_const_dec)(emit_t *emit, qstr qstr);
void (*load_const_id)(emit_t *emit, qstr qstr);