aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/array.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/array.h b/include/array.h
index 48f7b70..a6c2258 100644
--- a/include/array.h
+++ b/include/array.h
@@ -59,7 +59,7 @@ _mlib_array_hdr(void *p, ptrdiff_t align)
static void
array_set_size(void *p, ptrdiff_t size, ptrdiff_t align)
{
- _mlib_arr_hdr_t *hdr = _mlib_array_hdr(p, alignof(typeof(*p)));
+ _mlib_arr_hdr_t *hdr = _mlib_array_hdr(p, align);
hdr->len = size;
}