Fix up git warning

This commit is contained in:
Seth Hillbrand
2025-01-28 12:22:39 -08:00
parent 81fbaacae2
commit 3f90cfb0ca
+1 -1
View File
@@ -1815,7 +1815,7 @@ void PROJECT_TREE_PANE::onGitSwitchBranch( wxCommandEvent& aEvent )
std::vector<wxString> branches = m_TreeProject->GitCommon()->GetBranchNames();
int branchIndex = aEvent.GetId() - ID_GIT_SWITCH_BRANCH;
if( branchIndex < 0 || branchIndex >= branches.size() )
if( branchIndex < 0 || static_cast<size_t>( branchIndex ) >= branches.size() )
return;
branchName = branches[branchIndex];