From 19235b7127bcf5597fb0436deb45c2e6af5843c6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 14 Sep 2021 17:19:12 -0400 Subject: 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. --- test/allocator_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/allocator_test.c') 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; -- cgit v1.2.1