From 1d58dafa2cd7cd35b98bef520b544289020b8852 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Mon, 31 Aug 2020 10:02:41 +0200 Subject: [PATCH] Fix a problem with variant under minGW --- editor/src/editor/Editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/src/editor/Editor.cpp b/editor/src/editor/Editor.cpp index ea2c8e57..edad917d 100644 --- a/editor/src/editor/Editor.cpp +++ b/editor/src/editor/Editor.cpp @@ -909,7 +909,7 @@ void Editor::Impl::valueChanged(CControl* ctl) break; case kTagSetOversampling: - ctrl.uiSendValue(EditId::Oversampling, 1 << static_cast(value)); + ctrl.uiSendValue(EditId::Oversampling, static_cast(1 << static_cast(value))); updateOversamplingLabel(static_cast(value)); break; @@ -936,7 +936,7 @@ void Editor::Impl::valueChanged(CControl* ctl) default: if (tag >= kTagFirstChangePanel && tag <= kTagLastChangePanel) { int panelId = tag - kTagFirstChangePanel; - ctrl.uiSendValue(EditId::UIActivePanel, panelId); + ctrl.uiSendValue(EditId::UIActivePanel, static_cast(panelId)); setActivePanel(panelId); } break;