diff options
Diffstat (limited to 'src/stack.h')
-rw-r--r-- | src/stack.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stack.h b/src/stack.h index dbb196ae..8764afad 100644 --- a/src/stack.h +++ b/src/stack.h @@ -17,7 +17,7 @@ #ifndef SERD_STACK_H #define SERD_STACK_H -#include "serd_internal.h" +#include "system.h" #include <assert.h> #include <stddef.h> @@ -38,10 +38,10 @@ typedef struct { #define SERD_STACK_BOTTOM sizeof(void*) static inline SerdStack -serd_stack_new(size_t size) +serd_stack_new(size_t size, size_t align) { SerdStack stack; - stack.buf = (char*)calloc(size, 1); + stack.buf = (char*)serd_calloc_aligned(size, align); stack.buf_size = size; stack.size = SERD_STACK_BOTTOM; return stack; |