mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Don't operate on empty vector.
This commit is contained in:
parent
bb121b29e3
commit
0ff6d6364b
@ -8392,15 +8392,18 @@ void View::DrawFindZone()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
auto mid = vec.begin() + m_findZone.selSortActive;
|
if( !vec.empty() )
|
||||||
pdqsort_branchless( mid, vec.end() );
|
{
|
||||||
std::inplace_merge( vec.begin(), mid, vec.end() );
|
auto mid = vec.begin() + m_findZone.selSortActive;
|
||||||
|
pdqsort_branchless( mid, vec.end() );
|
||||||
|
std::inplace_merge( vec.begin(), mid, vec.end() );
|
||||||
|
|
||||||
m_findZone.selAverage = float( total ) / act;
|
m_findZone.selAverage = float( total ) / act;
|
||||||
m_findZone.selMedian = vec[act/2];
|
m_findZone.selMedian = vec[act/2];
|
||||||
m_findZone.selTotal = total;
|
m_findZone.selTotal = total;
|
||||||
m_findZone.selSortNum = m_findZone.sortedNum;
|
m_findZone.selSortNum = m_findZone.sortedNum;
|
||||||
m_findZone.selSortActive = act;
|
m_findZone.selSortActive = act;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user