diff --git a/src/Interface/TextList.cpp b/src/Interface/TextList.cpp
index 58adef3..f76de21 100644
--- a/src/Interface/TextList.cpp
+++ b/src/Interface/TextList.cpp
@@ -570,7 +570,7 @@ void TextList::setCondensed(bool condensed)
*/
int TextList::getSelectedRow() const
{
- int selRow = std::min(_selRow, _rows.size());
+ int selRow = std::min(_selRow, (unsigned)_rows.size());
return _rows[selRow];
}
fixes the compilation.