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;