summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-02-18 17:11:32 +0100
committerRichard Braun <rbraun@sceen.net>2018-02-18 17:11:32 +0100
commit709350072bbd2fe1d5f80e4b426bcb0ed50f3d5d (patch)
treeb26e7c7a59ef74ea4a7ec44c4dc77b114de41a98
parentc8812e110b3fb23a675957d97d2afa057169c866 (diff)
mem: fix boundary tag alignment
-rw-r--r--src/mem.c4
1 files 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[];
};
/*