diff options
Diffstat (limited to 'src/nvim/memory.c')
-rw-r--r-- | src/nvim/memory.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/memory.c b/src/nvim/memory.c index 732c9ca39d..eee8e25086 100644 --- a/src/nvim/memory.c +++ b/src/nvim/memory.c @@ -577,7 +577,9 @@ void alloc_block(Arena *arena) static size_t arena_align_offset(uint64_t off) { +#define ARENA_ALIGN MAX(sizeof(void *), sizeof(double)) return ((off + (ARENA_ALIGN - 1)) & ~(ARENA_ALIGN - 1)); +#undef ARENA_ALIGN } /// @param arena if NULL, do a global allocation. caller must then free the value! |