Skip to content
Commit 2856bba6 authored by Josef Weidendorfer's avatar Josef Weidendorfer
Browse files

TreeMap: fix compare function

For descending sorting, TreeMapItemLessThan
implemented <=, not <.

qSort obviously has no problem with that, but
in preparation of replacing the obsolete qSort
with std::sort, we need to fix it, because
it otherwise it can crash (actually observed!).
std::sort is known to be sensitive to non-strictly
ordering compare functions, eventually resulting
in out-of-bounds accesses.
parent b80aeb81
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment