From b507b0ffd21c65308a111e9638c5ce42f3d5b9f7 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 28 Apr 2024 02:02:41 +0200 Subject: Swap order of arguments --- include/alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/alloc.h b/include/alloc.h index 01863aa..bcee92f 100644 --- a/include/alloc.h +++ b/include/alloc.h @@ -36,6 +36,6 @@ void *arena_alloc(arena *, size_t, size_t, size_t); void arena_zero(arena *); void arena_free(arena *); -#define arena_new(a, T, n) ((T *)arena_alloc((a), sizeof(T), (n), alignof(T))) +#define arena_new(a, T, n) ((T *)arena_alloc((a), (n), sizeof(T), alignof(T))) #endif /* !MLIB_ALLOC_H */ -- cgit v1.2.3