diff -r 8c0421ccbb58 -r 80c31ebd66c1 test/test_allocator.c --- a/test/test_allocator.c Sun Feb 07 15:35:52 2021 +0100 +++ b/test/test_allocator.c Sun Feb 07 16:24:41 2021 +0100 @@ -31,10 +31,11 @@ #include void test_default_allocator_available(void) { - CU_ASSERT_PTR_EQUAL(cxDefaultAllocator->malloc, cx_malloc_stdlib) - CU_ASSERT_PTR_EQUAL(cxDefaultAllocator->realloc, cx_realloc_stdlib) - CU_ASSERT_PTR_EQUAL(cxDefaultAllocator->calloc, cx_calloc_stdlib) - CU_ASSERT_PTR_EQUAL(cxDefaultAllocator->free, cx_free_stdlib) + struct cx_allocator_class clazz = cxDefaultAllocator->allocatorClass; + CU_ASSERT_PTR_EQUAL(clazz.malloc, cx_malloc_stdlib) + CU_ASSERT_PTR_EQUAL(clazz.realloc, cx_realloc_stdlib) + CU_ASSERT_PTR_EQUAL(clazz.calloc, cx_calloc_stdlib) + CU_ASSERT_PTR_EQUAL(clazz.free, cx_free_stdlib) } void test_default_malloc(void) {