diff options
| author | Damien George | 2016-04-26 10:02:32 +0100 |
|---|---|---|
| committer | Damien George | 2016-04-26 10:02:32 +0100 |
| commit | 23df4b08fba26a6a467186cfcaf0d72cca1122ea (patch) | |
| tree | 9a88c7d76658240e0a04a06244576aa8aa469991 | |
| parent | 2bddfd492255d03a695a1e7488de3fba80b8e5ab (diff) | |
py/emitnative: Use MP_OBJ_NEW_SMALL_INT instead of manual bit shifting.
| -rw-r--r-- | py/emitnative.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emitnative.c b/py/emitnative.c index a03ab36ed..9adaabc11 100644 --- a/py/emitnative.c +++ b/py/emitnative.c @@ -1208,7 +1208,7 @@ STATIC void emit_get_stack_pointer_to_reg_for_pop(emit_t *emit, mp_uint_t reg_de break; case VTYPE_INT: case VTYPE_UINT: - ASM_MOV_IMM_TO_LOCAL_USING(emit->as, (si->data.u_imm << 1) | 1, emit->stack_start + emit->stack_size - 1 - i, reg_dest); + 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); si->vtype = VTYPE_PYOBJ; break; default: |
