Skip to content

Commit

Permalink
py: Fix emitnative's creation of small ints so it uses the macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Mar 31, 2015
1 parent d460a30 commit 2686f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/emitnative.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit 2686f9b

Please sign in to comment.