GCompareFunc can return any negative or positive number to denote inequality. So we shouldn't be comparing against -1 or 1.
Created attachment 85196 [details] [review] TpHeap: comparator results are not guaranteed to be -1, 0 and 1
Comment on attachment 85196 [details] [review] TpHeap: comparator results are not guaranteed to be -1, 0 and 1 Review of attachment 85196 [details] [review]: ----------------------------------------------------------------- Looks good, I'll apply it.
Thanks, fixed in git for 0.20.5, 0.21.2
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.