refactor: tr_compare_3way() (#5799)

This commit is contained in:
Charles Kerr
2023-07-15 21:55:44 -05:00
committed by GitHub
parent 273f943a3b
commit ea9fd64830
9 changed files with 57 additions and 138 deletions

View File

@@ -1503,7 +1503,7 @@ int compareAnnounceTiers(tr_tier const* a, tr_tier const* b)
// the tiers are effectively equal priority, but add an arbitrary
// differentiation because ptrArray sorted mode hates equal items.
return a < b ? -1 : 1;
return tr_compare_3way(a, b);
}
void tierAnnounce(tr_announcer_impl* announcer, tr_tier* tier)