fix cxSetAdvancedCompareFunc() setting the wrong custom data field

Fri, 19 Dec 2025 14:14:22 +0100

author
Mike Becker <universe@uap-core.de>
date
Fri, 19 Dec 2025 14:14:22 +0100
changeset 1631
74c6582adabb
parent 1630
17ae70728139
child 1632
f74e4fc496a2

fix cxSetAdvancedCompareFunc() setting the wrong custom data field

src/cx/collection.h file | annotate | diff | comparison | revisions
--- a/src/cx/collection.h	Fri Dec 19 14:13:49 2025 +0100
+++ b/src/cx/collection.h	Fri Dec 19 14:14:22 2025 +0100
@@ -204,7 +204,7 @@
  */
 #define cxSetAdvancedCompareFunc(c, func, data) \
     (c)->collection.advanced_cmp = (cx_compare_func2) func; \
-    (c)->collection.destructor_data = data
+    (c)->collection.cmp_data = data
 
 /**
  * Invokes the simple comparator function for two elements.

mercurial