commit | 2686f9b3e8ada0f32a095ab552b0b64602a1225c | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Wed Apr 01 00:12:43 2015 +0100 |
committer | Damien George <damien.p.george@gmail.com> | Wed Apr 01 00:12:43 2015 +0100 |
tree | 2f2da0f752ed75c05a91c7f4d36e0e0ff92c7e23 | |
parent | d460a307114285c675846bc4be2a57b59c06c11a [diff] [blame] |
py: Fix emitnative's creation of small ints so it uses the macro.
diff --git a/py/emitnative.c b/py/emitnative.c index 423b168..85eb891 100644 --- a/py/emitnative.c +++ b/py/emitnative.c
@@ -1125,7 +1125,7 @@ if (emit->do_viper_types) { emit_post_push_imm(emit, VTYPE_INT, arg); } else { - emit_post_push_imm(emit, VTYPE_PYOBJ, (arg << 1) | 1); + emit_post_push_imm(emit, VTYPE_PYOBJ, (mp_uint_t)MP_OBJ_NEW_SMALL_INT(arg)); } }