mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Added workaround for Debug build mode.
940b4ff55e (commitcomment-1943357)
This commit is contained in:
parent
40e7617ecc
commit
c1bd5860f2
@ -481,7 +481,7 @@ bool CMeasure::Update()
|
||||
m_MedianPos %= MEDIAN_SIZE;
|
||||
|
||||
auto medianArray = m_MedianValues;
|
||||
std::sort(&medianArray[0], &medianArray[MEDIAN_SIZE]);
|
||||
std::sort(&medianArray.data()[0], &medianArray.data()[MEDIAN_SIZE]); // Workaround for "Debug" build mode
|
||||
|
||||
double medianValue = medianArray[MEDIAN_SIZE / 2];
|
||||
m_MaxValue = max(m_MaxValue, medianValue);
|
||||
|
Loading…
Reference in New Issue
Block a user