diff --git a/DebugView++/LogView.cpp b/DebugView++/LogView.cpp index ed6c9c1a..90e2be6f 100644 --- a/DebugView++/LogView.cpp +++ b/DebugView++/LogView.cpp @@ -1602,13 +1602,13 @@ int CLogView::FindLine(Predicate pred, int direction) const SetCursor(::LoadCursor(nullptr, IDC_ARROW)); Win32::ScopedCursor cursor(::LoadCursor(nullptr, IDC_WAIT)); - size_t begin = std::max(GetNextItem(-1, LVNI_FOCUSED), 0); - size_t line = begin; + int begin = std::max(GetNextItem(-1, LVNI_FOCUSED), 0); + int line = begin; if (m_logLines.empty()) return -1; - auto size = m_logLines.size(); + auto size = static_cast (m_logLines.size()); do { line += direction;