diff -r 04aa3913c0e3 -r 30473af255b4 src/list.c --- 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);