Tiny simplification
This commit is contained in:
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user