From 709350072bbd2fe1d5f80e4b426bcb0ed50f3d5d Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Sun, 18 Feb 2018 17:11:32 +0100 Subject: mem: fix boundary tag alignment --- src/mem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mem.c b/src/mem.c index 3392011..19d9e9c 100644 --- a/src/mem.c +++ b/src/mem.c @@ -195,7 +195,7 @@ * bit is always 0. Therefore, this bit is used to store the allocation flag. */ struct mem_btag { - size_t value; + size_t value __aligned(MEM_ALIGN); }; /* @@ -208,7 +208,7 @@ struct mem_btag { */ struct mem_block { struct mem_btag btag; - char payload[] __aligned(MEM_ALIGN); + char payload[]; }; /* -- cgit v1.2.3