summaryrefslogtreecommitdiffstatshomepage
path: root/py/emitnative.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-28 14:07:21 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-28 14:07:21 +0100
commit503d6110338ab2d79e6c0f8f591a0ca6397717de (patch)
treebb57f7338aa07d248fb17cc6260d1f36c8bb8b86 /py/emitnative.c
parent1d567592b18ea9796515436754877aac3948bd29 (diff)
downloadmicropython-503d6110338ab2d79e6c0f8f591a0ca6397717de.tar.gz
micropython-503d6110338ab2d79e6c0f8f591a0ca6397717de.zip
py: Implement long int parsing in int(...).
Addresses issue #627.
Diffstat (limited to 'py/emitnative.c')
-rw-r--r--py/emitnative.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emitnative.c b/py/emitnative.c
index 261b1a2a51..057e42c756 100644
--- a/py/emitnative.c
+++ b/py/emitnative.c
@@ -704,7 +704,7 @@ STATIC void emit_native_load_const_int(emit_t *emit, qstr qst) {
DEBUG_printf("load_const_int %s\n", qstr_str(st));
// for viper: load integer, check fits in 32 bits
emit_native_pre(emit);
- emit_call_with_imm_arg(emit, MP_F_LOAD_CONST_INT, mp_obj_new_int_from_qstr, qst, REG_ARG_1);
+ emit_call_with_imm_arg(emit, MP_F_LOAD_CONST_INT, mp_load_const_int, qst, REG_ARG_1);
emit_post_push_reg(emit, VTYPE_PYOBJ, REG_RET);
}