diff options
Diffstat (limited to 'src/stack.h')
-rw-r--r-- | src/stack.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stack.h b/src/stack.h index cf2d4f26..3610d0c3 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 <assert.h> #include <stdbool.h> #include <stddef.h> @@ -38,7 +40,7 @@ static inline SerdStack serd_stack_new(size_t size) { SerdStack stack; - stack.buf = (char*)calloc(1, size); + stack.buf = (char*)serd_calloc_aligned(size, sizeof(SerdNode)); stack.buf_size = size; stack.size = SERD_STACK_BOTTOM; return stack; |