From c348e791879e8615347403f541717eb9386fe4ee Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 2 Sep 2019 13:09:44 +1000 Subject: py/binary: Change mp_uint_t to size_t for index, size, align args. Reduces code size for nan-box builds, otherwise changes nothing. --- py/modstruct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/modstruct.c') diff --git a/py/modstruct.c b/py/modstruct.c index 3e7d90ec13..36af4260ee 100644 --- a/py/modstruct.c +++ b/py/modstruct.c @@ -97,7 +97,7 @@ STATIC size_t calc_size_items(const char *fmt, size_t *total_sz) { size += cnt; } else { total_cnt += cnt; - mp_uint_t align; + size_t align; size_t sz = mp_binary_get_size(fmt_type, *fmt, &align); while (cnt--) { // Apply alignment -- cgit v1.2.3