summaryrefslogtreecommitdiffstatshomepage
path: root/py/modstruct.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-09-02 13:09:44 +1000
committerDamien George <damien.p.george@gmail.com>2019-09-02 13:14:27 +1000
commitc348e791879e8615347403f541717eb9386fe4ee (patch)
tree6bf9ef08d364a8ada61d744866c2d3c04946c82a /py/modstruct.c
parent24c3e9b283da26093ca653fc6b441042fedec135 (diff)
downloadmicropython-c348e791879e8615347403f541717eb9386fe4ee.tar.gz
micropython-c348e791879e8615347403f541717eb9386fe4ee.zip
py/binary: Change mp_uint_t to size_t for index, size, align args.
Reduces code size for nan-box builds, otherwise changes nothing.
Diffstat (limited to 'py/modstruct.c')
-rw-r--r--py/modstruct.c2
1 files changed, 1 insertions, 1 deletions
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