diff --git a/userspace/sinspui/cursestable.cpp b/userspace/sinspui/cursestable.cpp index e0a8ccb3ca..5c2fee2f95 100644 --- a/userspace/sinspui/cursestable.cpp +++ b/userspace/sinspui/cursestable.cpp @@ -438,7 +438,7 @@ void curses_table::render(bool data_changed) // vector* row; - for(l = 0; l < std::min((int32_t)m_data->size(), m_h - 1); l++) + for(l = 0; l < std::min((int32_t)m_data->size(),(int32_t)(m_h - 1)); l++) { if(l + m_firstrow >= (int32_t)m_data->size()) {