diff options
author | Richard Braun <rbraun@sceen.net> | 2018-01-28 15:41:59 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-01-28 15:41:59 +0100 |
commit | b174f7fb7f936ca0365a851d3fd486e6baba357e (patch) | |
tree | da4f0c8dfe6141602baed5556c78a5f5800dffe0 /src/mem.c | |
parent | 4778a84feb6c53e08fd2f15e33f2d1df64c0737f (diff) |
mem: fix alignment
Diffstat (limited to 'src/mem.c')
-rw-r--r-- | src/mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); }; /* |