Skip to content

Commit 23df4b0

Browse files
committed
py/emitnative: Use MP_OBJ_NEW_SMALL_INT instead of manual bit shifting.
1 parent 2bddfd4 commit 23df4b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/emitnative.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ STATIC void emit_get_stack_pointer_to_reg_for_pop(emit_t *emit, mp_uint_t reg_de
12081208
break;
12091209
case VTYPE_INT:
12101210
case VTYPE_UINT:
1211-
ASM_MOV_IMM_TO_LOCAL_USING(emit->as, (si->data.u_imm << 1) | 1, emit->stack_start + emit->stack_size - 1 - i, reg_dest);
1211+
ASM_MOV_IMM_TO_LOCAL_USING(emit->as, (uintptr_t)MP_OBJ_NEW_SMALL_INT(si->data.u_imm), emit->stack_start + emit->stack_size - 1 - i, reg_dest);
12121212
si->vtype = VTYPE_PYOBJ;
12131213
break;
12141214
default:

0 commit comments

Comments
 (0)