fix test function having the wrong type

Tue, 11 Feb 2025 19:31:01 +0100

author
Mike Becker <universe@uap-core.de>
date
Tue, 11 Feb 2025 19:31:01 +0100
changeset 1183
86d386c0cf75
parent 1181
183bf43aa9b9
child 1184
34d60b1664f2

fix test function having the wrong type

tests/test_tree.c file | annotate | diff | comparison | revisions
--- 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