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; m_sorted[i] = toPut;
} else if (toPut < toDrop) { } else if (toPut < toDrop) {
int i = dropIx; int i = dropIx;
while (i >= 0) { while (true) {
--i; if (--i < 0 || m_sorted[i] < toPut) {
if (i < 0 || m_sorted[i] < toPut) {
break; break;
} }
m_sorted[i+1] = m_sorted[i]; m_sorted[i+1] = m_sorted[i];