From 277e3b7dd1bc85cd190c6e4c451c7bfab71ee07e Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Mon, 24 Mar 2025 22:55:45 -0500 Subject: Fix MEM_ALIGN_BYTES not being static --- src/arena.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/arena.h') diff --git a/src/arena.h b/src/arena.h index a94001b..e656f9a 100644 --- a/src/arena.h +++ b/src/arena.h @@ -11,7 +11,7 @@ typedef struct arena arena; typedef arena simplearena; #define ISPOWOF2(x) (((x) & ((x) - 1)) == 0) -const size_t MEM_ALIGN_BYTES = (2 * sizeof(void*)); +static const size_t MEM_ALIGN_BYTES = (2 * sizeof(void*)); // Hey, the static keyword did something for once! #define MEM_ALIGN(x) ((x) + (((x) & (MEM_ALIGN_BYTES - 1)) != 0) * (MEM_ALIGN_BYTES - ((x) & (MEM_ALIGN_BYTES - 1)))) int arena_init(arena **a, size_t bytes); -- cgit v1.2.3