From 5ab74d90a99cc72d9c0ffa3deae7779ff86c518b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 13 Apr 2019 18:47:36 +0100 Subject: Fix node alignment on 32-bit ARM --- src/stack.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/stack.h') diff --git a/src/stack.h b/src/stack.h index 1460e0c2..1a5b7136 100644 --- a/src/stack.h +++ b/src/stack.h @@ -17,6 +17,8 @@ #ifndef SERD_STACK_H #define SERD_STACK_H +#include "system.h" + #include #include #include @@ -38,7 +40,7 @@ static inline SerdStack serd_stack_new(size_t size) { SerdStack stack; - stack.buf = (char*)calloc(size, 1); + stack.buf = (char*)serd_calloc_aligned(size, sizeof(SerdNode)); stack.buf_size = size; stack.size = SERD_STACK_BOTTOM; return stack; -- cgit v1.2.1