tests/test_tree.c

changeset 1183
86d386c0cf75
parent 1180
4c3a69b9723a
--- a/tests/test_tree.c	Mon Feb 10 21:47:25 2025 +0100
+++ b/tests/test_tree.c	Tue Feb 11 19:31:01 2025 +0100
@@ -56,8 +56,8 @@
 
 static void *tree_node_file_create(
         const void *dptr,
-        const void *allocator) {
-    if (allocator == NULL) allocator = cxDefaultAllocator;
+        void *allocator) {
+    if (allocator == NULL) allocator = (void*) cxDefaultAllocator;
 
     tree_node_file *node = cxMalloc(allocator, sizeof(tree_node_file));
     node->path = dptr;

mercurial