From 09ef049dd136ff5e371b8ea6d978777f252480d8 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 16 Oct 2024 04:05:39 +0200 Subject: Fix code I didn’t test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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; } -- cgit v1.2.3