diff --git a/python/port/mpconfigport.h b/python/port/mpconfigport.h index b1be2dc92..e96b81a41 100644 --- a/python/port/mpconfigport.h +++ b/python/port/mpconfigport.h @@ -65,8 +65,8 @@ // to print such value. So, we avoid int32_t and use int directly. #define UINT_FMT "%u" #define INT_FMT "%d" -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;