summaryrefslogtreecommitdiff
path: root/src/mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem.c')
-rw-r--r--src/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem.c b/src/mem.c
index 185da4f..3392011 100644
--- a/src/mem.c
+++ b/src/mem.c
@@ -151,7 +151,7 @@
*
* See the description of mem_alloc() in the public header.
*/
-#define MEM_ALIGN 4
+#define MEM_ALIGN 8
/*
* Minimum size of a block.
@@ -208,7 +208,7 @@ struct mem_btag {
*/
struct mem_block {
struct mem_btag btag;
- char payload[];
+ char payload[] __aligned(MEM_ALIGN);
};
/*