aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-16 04:05:39 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-10-16 04:05:39 +0200
commit09ef049dd136ff5e371b8ea6d978777f252480d8 (patch)
treec37c33fa8e1d3ff770d678ae78d56c0b69aafe78
parent8f771fb3c4a8af0f6d5be468651a61dd00aeecc2 (diff)
Fix code I didn’t test
-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;
}