Tiny simplification

This commit is contained in:
Chris Cannam
2022-06-07 09:02:00 +01:00
parent b8c7289c45
commit 459be9fbad

View File

@@ -146,9 +146,8 @@ private:
m_sorted[i] = toPut;
} else if (toPut < toDrop) {
int i = dropIx;
while (i >= 0) {
--i;
if (i < 0 || m_sorted[i] < toPut) {
while (true) {
if (--i < 0 || m_sorted[i] < toPut) {
break;
}
m_sorted[i+1] = m_sorted[i];