From 3f90cfb0ca8b5fd3fc5706f5c443e4ecb4985b4b Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 28 Jan 2025 12:01:05 -0800 Subject: [PATCH] Fix up git warning --- kicad/project_tree_pane.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kicad/project_tree_pane.cpp b/kicad/project_tree_pane.cpp index a525f978b4..0fc46b8b05 100644 --- a/kicad/project_tree_pane.cpp +++ b/kicad/project_tree_pane.cpp @@ -1815,7 +1815,7 @@ void PROJECT_TREE_PANE::onGitSwitchBranch( wxCommandEvent& aEvent ) std::vector branches = m_TreeProject->GitCommon()->GetBranchNames(); int branchIndex = aEvent.GetId() - ID_GIT_SWITCH_BRANCH; - if( branchIndex < 0 || branchIndex >= branches.size() ) + if( branchIndex < 0 || static_cast( branchIndex ) >= branches.size() ) return; branchName = branches[branchIndex];