summaryrefslogtreecommitdiffstats
path: root/test/allocator_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-09-14 17:19:12 -0400
committerDavid Robillard <d@drobilla.net>2021-09-14 17:19:12 -0400
commit19235b7127bcf5597fb0436deb45c2e6af5843c6 (patch)
treebb0207a4799f67933cd793e0501d09a10822c5ec /test/allocator_test.c
parent9572ea596d07147dbfb6db7772623e740ce28652 (diff)
downloadzix-19235b7127bcf5597fb0436deb45c2e6af5843c6.tar.gz
zix-19235b7127bcf5597fb0436deb45c2e6af5843c6.tar.bz2
zix-19235b7127bcf5597fb0436deb45c2e6af5843c6.zip
Make ZixAllocator a single flat struct
I can never decide between these two patterns for polymorphic objects in C, but this one seems more appropriate here since it's more conducive to inheritance.
Diffstat (limited to 'test/allocator_test.c')
-rw-r--r--test/allocator_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/allocator_test.c b/test/allocator_test.c
index 6850bdc..a6087e1 100644
--- a/test/allocator_test.c
+++ b/test/allocator_test.c
@@ -12,7 +12,7 @@ test_allocator(void)
{
// Just a basic smoke test to check that things seem to be working
- const ZixAllocator* const allocator = zix_default_allocator();
+ ZixAllocator* const allocator = zix_default_allocator();
char* const malloced = (char*)zix_malloc(allocator, 4);
malloced[0] = 0;