Skip to content

Commit 4081498

Browse files
committed
bricks/_common/mpconfigport: Use intptr_t for mp_int_t.
This is more cross platform, making it work for unix-like builds.
1 parent f3e6c46 commit 4081498

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bricks/_common/mpconfigport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@
134134
// to print such value. So, we avoid int32_t and use int directly.
135135
#define UINT_FMT "%u"
136136
#define INT_FMT "%d"
137-
typedef int mp_int_t; // must be pointer size
138-
typedef unsigned mp_uint_t; // must be pointer size
137+
typedef intptr_t mp_int_t; // must be pointer size
138+
typedef uintptr_t mp_uint_t; // must be pointer size
139139

140140
typedef long mp_off_t;
141141

0 commit comments

Comments
 (0)