From c84ac0bc1043eb354ebf10b6e9678041feb2f6c2 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 2 Mar 2021 14:22:47 +0100 Subject: [PATCH] sys: Fix compile on Unix --- source/views/view_information.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/views/view_information.cpp b/source/views/view_information.cpp index d65490763..1bdf657e4 100644 --- a/source/views/view_information.cpp +++ b/source/views/view_information.cpp @@ -190,13 +190,13 @@ namespace hex { ImGui::TextUnformatted("hex.view.information.distribution"_lang); ImPlot::SetNextPlotLimits(0, 256, 0, float(*std::max_element(this->m_valueCounts.begin(), this->m_valueCounts.end())) * 1.1F, ImGuiCond_Always); if (ImPlot::BeginPlot("##distribution", "Address", "Count", ImVec2(-1,0), ImPlotFlags_NoLegend | ImPlotFlags_NoMenus | ImPlotFlags_NoBoxSelect, ImPlotAxisFlags_Lock, ImPlotAxisFlags_Lock)) { - constexpr static auto x = []{ + static auto x = []{ std::array result{ 0 }; std::iota(result.begin(), result.end(), 0); return result; }(); - ImPlot::PlotBars("##bytes", x.data(), this->m_valueCounts.data(), x.size(), 0.67); + ImPlot::PlotBars("##bytes", x.data(), this->m_valueCounts.data(), x.size(), 0.67); ImPlot::EndPlot(); }