From 030e85dddff735c844fa28802729ef4bd9e4db2b Mon Sep 17 00:00:00 2001 From: Persune Date: Wed, 29 Nov 2023 01:54:04 +0800 Subject: [PATCH] Fix narrowing conversion bug --- Source/FrameAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/FrameAction.cpp b/Source/FrameAction.cpp index a88b651e..b85305f8 100644 --- a/Source/FrameAction.cpp +++ b/Source/FrameAction.cpp @@ -34,7 +34,7 @@ CFrameEditorState::CFrameEditorState(const CFamiTrackerView *pView, int Track) : // // // Track(Track), - Cursor {static_cast(pView->GetParentFrame())->GetFrameEditor()->GetEditFrame(), (int)pView->GetSelectedChannel()}, + Cursor{ static_cast(pView->GetParentFrame())->GetFrameEditor()->GetEditFrame(), static_cast(pView->GetSelectedChannel()) }, OriginalSelection(static_cast(pView->GetParentFrame())->GetFrameEditor()->GetSelection()), IsSelecting(static_cast(pView->GetParentFrame())->GetFrameEditor()->IsSelecting()) {