summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Blanchard <antonb@tenstorrent.com>2024-10-31 15:41:28 +1100
committerDamien George <damien@micropython.org>2025-05-07 21:36:54 +1000
commit45e4deb96daf23e648d1cb52100d12da275cdfe8 (patch)
tree8091faf15f7769872aa4edf6dab8bf01bdf3b348
parentfe28cd78fefde7da1bc7614982223ce9e522143a (diff)
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>
-rw-r--r--ports/zephyr/mpconfigport.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/zephyr/mpconfigport.h b/ports/zephyr/mpconfigport.h
index e015776a4..3a6e93486 100644
--- a/ports/zephyr/mpconfigport.h
+++ b/ports/zephyr/mpconfigport.h
@@ -139,8 +139,8 @@ void mp_hal_signal_event(void);
#define MICROPY_HW_MCU_NAME "unknown-cpu"
#endif
-typedef int mp_int_t; // must be pointer size
-typedef unsigned mp_uint_t; // must be pointer size
+typedef intptr_t mp_int_t; // must be pointer size
+typedef uintptr_t mp_uint_t; // must be pointer size
typedef long mp_off_t;
#define MP_STATE_PORT MP_STATE_VM