Skip to content

Commit 45e4deb

Browse files
antonblancharddpgeorge
authored andcommitted
zephyr/mpconfigport: Fix mp_int_t and mp_uint_t to work on 64-bit archs.
These both need to fit a pointer, so make them `intptr_t` and `uintptr_t`, similar to other ports. Signed-off-by: Anton Blanchard <antonb@tenstorrent.com>
1 parent fe28cd7 commit 45e4deb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/zephyr/mpconfigport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ void mp_hal_signal_event(void);
139139
#define MICROPY_HW_MCU_NAME "unknown-cpu"
140140
#endif
141141

142-
typedef int mp_int_t; // must be pointer size
143-
typedef unsigned mp_uint_t; // must be pointer size
142+
typedef intptr_t mp_int_t; // must be pointer size
143+
typedef uintptr_t mp_uint_t; // must be pointer size
144144
typedef long mp_off_t;
145145

146146
#define MP_STATE_PORT MP_STATE_VM

0 commit comments

Comments
 (0)