py: Fix emitnative's creation of small ints so it uses the macro.

NotImplemented
Damien George 2015-04-01 00:12:43 +01:00
parent d460a30711
commit 2686f9b3e8
1 changed files with 1 additions and 1 deletions

View File

@ -1125,7 +1125,7 @@ STATIC void emit_native_load_const_small_int(emit_t *emit, mp_int_t arg) {
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));
}
}