From c922c95c96a3fded2fae5394d5353f3ce36aaca6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 20 Dec 2018 02:21:53 +0100 Subject: [PATCH] Fix the just introduced signed/unsigned comparison warning Cast to unsigned before comparing with an unsigned variable. --- src/generic/datavgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 79ee360da9..192a281047 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -3395,7 +3395,7 @@ int wxDataViewMainWindow::GetLineAt( unsigned int y ) const unsigned int rowCount = GetRowCount(); if (rowCount == 0 || (m_rowHeightCache->GetLineInfo(rowCount - 1, start, height) && - y >= start + height)) + y >= static_cast(start + height))) { return rowCount; }