fix #356 : broken cxListCompare

Fri, 12 Jan 2024 20:13:13 +0100

author
Mike Becker <universe@uap-core.de>
date
Fri, 12 Jan 2024 20:13:13 +0100
changeset 802
30473af255b4
parent 801
04aa3913c0e3
child 803
0711d869ce4d

fix #356 : broken cxListCompare

src/list.c file | annotate | diff | comparison | revisions
--- a/src/list.c	Wed Jan 10 22:13:23 2024 +0100
+++ b/src/list.c	Fri Jan 12 20:13:13 2024 +0100
@@ -296,7 +296,7 @@
         // lists are definitely different - cannot use internal compare function
         if (list->size == other->size) {
             CxIterator left = list->cl->iterator(list, 0, false);
-            CxIterator right = other->cl->iterator(list, 0, false);
+            CxIterator right = other->cl->iterator(other, 0, false);
             for (size_t i = 0; i < list->size; i++) {
                 void *leftValue = cxIteratorCurrent(left);
                 void *rightValue = cxIteratorCurrent(right);

mercurial