Skip to content

Commit bf8ae4d

Browse files
committed
py: Fix modstruct to compile on 64-bit machine.
1 parent 3a8b160 commit bf8ae4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/modstruct.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ STATIC mp_obj_t struct_calcsize(mp_obj_t fmt_in) {
3838
const char *fmt = mp_obj_str_get_str(fmt_in);
3939
char fmt_type = get_fmt_type(&fmt);
4040
assert(fmt_type == '<'); (void)fmt_type;
41-
uint size;
41+
machine_uint_t size;
4242
for (size = 0; *fmt; fmt++) {
4343
int sz = mp_binary_get_size(*fmt);
4444
// TODO

0 commit comments

Comments
 (0)