Fix the just introduced signed/unsigned comparison warning

Cast to unsigned before comparing with an unsigned variable.
This commit is contained in:
Vadim Zeitlin
2018-12-20 02:21:53 +01:00
parent 12edcbccc8
commit c922c95c96

View File

@@ -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<unsigned int>(start + height)))
{
return rowCount;
}