aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-04-28 02:02:41 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-04-28 02:02:41 +0200
commitb507b0ffd21c65308a111e9638c5ce42f3d5b9f7 (patch)
tree916203ee646009d05c02a67253ab62c41d09de4f /include
parent205de25237f5cd88f55f6a5f4264f65a4f1cbc6f (diff)
Swap order of arguments
Diffstat (limited to 'include')
-rw-r--r--include/alloc.h2
1 files changed, 1 insertions, 1 deletions
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 */