From c1bd5860f271adb9239a0245f15493a73ae02948 Mon Sep 17 00:00:00 2001 From: spx Date: Wed, 3 Oct 2012 15:36:45 -0700 Subject: [PATCH] Added workaround for Debug build mode. https://github.com/rainmeter/rainmeter/commit/940b4ff55e6f88c416a670e50a56ab14c7295062#commitcomment-1943357 --- Library/Measure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Measure.cpp b/Library/Measure.cpp index 05fbfffc..94532724 100644 --- a/Library/Measure.cpp +++ b/Library/Measure.cpp @@ -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);