From 08d075592f3fa958ac3f24e176bee5ab56e78f49 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 29 Jan 2014 18:58:52 +0000 Subject: 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. --- py/emit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/emit.h') 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); -- cgit v1.2.3