Skip to content

Commit 6fc9542

Browse files
committed
mp_int_t and mp_uint_t now defined in mpconfig.h
1 parent 0882034 commit 6fc9542

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

py/circuitpy_mpconfig.h

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ extern void common_hal_mcu_enable_interrupts(void);
4646
#define MICROPY_PY_BLUETOOTH (0)
4747
#define MICROPY_PY_LWIP_SLIP (0)
4848
#define MICROPY_PY_OS_DUPTERM (0)
49-
#define MICROPY_PYEXEC_COMPILE_ONLY (0)
49+
#define MICROPY_PYEXEC_COMPILE_ONLY (0)
5050
#define MICROPY_ROM_TEXT_COMPRESSION (0)
5151
#define MICROPY_VFS_LFS1 (0)
5252
#define MICROPY_VFS_LFS2 (0)
@@ -198,21 +198,6 @@ extern void common_hal_mcu_enable_interrupts(void);
198198
// Track stack usage. Expose results via ustack module.
199199
#define MICROPY_MAX_STACK_USAGE (0)
200200

201-
#define UINT_FMT "%u"
202-
#define INT_FMT "%d"
203-
#ifdef __LP64__
204-
typedef long mp_int_t; // must be pointer size
205-
typedef unsigned long mp_uint_t; // must be pointer size
206-
#else
207-
// These are definitions for machines where sizeof(int) == sizeof(void*),
208-
// regardless of actual size.
209-
typedef int mp_int_t; // must be pointer size
210-
typedef unsigned int mp_uint_t; // must be pointer size
211-
#endif
212-
#if __GNUC__ >= 10 // on recent gcc versions we can check that this is so
213-
_Static_assert(sizeof(mp_int_t) == sizeof(void *));
214-
_Static_assert(sizeof(mp_uint_t) == sizeof(void *));
215-
#endif
216201
typedef long mp_off_t;
217202

218203
#define MP_PLAT_PRINT_STRN(str, len) mp_hal_stdout_tx_strn_cooked(str, len)

0 commit comments

Comments
 (0)