From f893f479f2c667c627aa5e130e2456c5df5a0b7c Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sat, 25 Feb 2017 11:19:40 +0100 Subject: [PATCH] Fix warning Signed-off-by: Sven Strickroth --- src/TortoiseProc/CommitIsOnRefsDlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TortoiseProc/CommitIsOnRefsDlg.cpp b/src/TortoiseProc/CommitIsOnRefsDlg.cpp index 6e63e680b..4eda241a0 100644 --- a/src/TortoiseProc/CommitIsOnRefsDlg.cpp +++ b/src/TortoiseProc/CommitIsOnRefsDlg.cpp @@ -385,7 +385,7 @@ void CCommitIsOnRefsDlg::OnItemChangedListRefs(NMHDR* pNMHDR, LRESULT* pResult) LPNMLISTVIEW pNMListView = reinterpret_cast(pNMHDR); *pResult = 0; - if (pNMListView->iItem >= 0 && m_RefList.size() > pNMListView->iItem && (pNMListView->uNewState & LVIS_SELECTED)) + if (pNMListView->iItem >= 0 && m_RefList.size() > (size_t)pNMListView->iItem && (pNMListView->uNewState & LVIS_SELECTED)) m_sLastSelected = m_RefList[pNMListView->iItem]; } @@ -394,7 +394,7 @@ void CCommitIsOnRefsDlg::OnNMDblClickListRefs(NMHDR* pNMHDR, LRESULT* pResult) *pResult = 0; LPNMLISTVIEW pNMListView = reinterpret_cast(pNMHDR); - if (m_bNonModalParentHWND && pNMListView->iItem >= 0 && m_RefList.size() > pNMListView->iItem) + if (m_bNonModalParentHWND && pNMListView->iItem >= 0 && m_RefList.size() > (size_t)pNMListView->iItem) { if (::SendMessage(m_bNonModalParentHWND, CGitLogListBase::m_ScrollToRef, (WPARAM)&m_RefList[pNMListView->iItem], 0) != 0) FlashWindowEx(FLASHW_ALL, 2, 100); -- 2.11.4.GIT