aboutsummaryrefslogtreecommitdiff
path: root/core/mem/allocators.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-06-14 11:43:35 +0100
committergingerBill <bill@gingerbill.org>2021-06-14 11:43:35 +0100
commit3e7aabe6d83797f7451300a5c8e6fb4a5c1804d2 (patch)
tree1d478a40ae1ac927846700c1d130ab4ce639607e /core/mem/allocators.odin
parentd4df325e0a2cfe1d6de90667099d9ac43e269029 (diff)
Change uses for parapoly records to use `$` always
Diffstat (limited to 'core/mem/allocators.odin')
-rw-r--r--core/mem/allocators.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/mem/allocators.odin b/core/mem/allocators.odin
index 282fff48c..258aea3a5 100644
--- a/core/mem/allocators.odin
+++ b/core/mem/allocators.odin
@@ -919,7 +919,7 @@ tracking_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode,
// Small_Allocator primary allocates memory from its local buffer of size BUFFER_SIZE
// If that buffer's memory is exhausted, it will use the backing allocator (a scratch allocator is recommended)
// Memory allocated with Small_Allocator cannot be freed individually using 'free' and must be freed using 'free_all'
-Small_Allocator :: struct(BUFFER_SIZE: int)
+Small_Allocator :: struct($BUFFER_SIZE: int)
where
BUFFER_SIZE >= 2*size_of(uintptr),
BUFFER_SIZE & (BUFFER_SIZE-1) == 0 {