Fri, 12 Jan 2024 20:13:13 +0100
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);