summaryrefslogtreecommitdiff
path: root/py/modstruct.c
diff options
context:
space:
mode:
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 3e7d90ec1..36af4260e 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