# HG changeset patch # User Mike Becker # Date 1761848838 -3600 # Node ID e228b5bde7f6e33e2f49b382712a4c89575cd1c0 # Parent 9263d3f1537939bb28fbe9ac89ffb23f7aa39dc6 fix typo bug in cxListDifference() - resolves #745 diff -r 9263d3f15379 -r e228b5bde7f6 src/list.c --- a/src/list.c Thu Oct 30 19:26:47 2025 +0100 +++ b/src/list.c Thu Oct 30 19:27:18 2025 +0100 @@ -868,8 +868,8 @@ // first, remove existing items from dst when needed if (cxCollectionSorted(dst) && cxCollectionSorted(subtrahend)) { - CxIterator sub_iter = cxListIterator(dst); CxIterator dst_iter = cxListIterator(dst); + CxIterator sub_iter = cxListIterator(subtrahend); while (cxIteratorValid(dst_iter) && cxIteratorValid(sub_iter)) { void *dst_elem = cxIteratorCurrent(dst_iter); void *sub_elem = cxIteratorCurrent(sub_iter);