diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index 333da7b3..0a7c20a3 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.cc @@ -1038,8 +1038,8 @@ void Menu::exposeEvent(XExposeEvent &ee) { size_t row = ee.y / item_h; size_t end_row = ((ee.y + ee.height) / item_h); - if (end_row > m_rows_per_column) - end_row = m_rows_per_column; + if (end_row > static_cast(m_rows_per_column)) + end_row = static_cast(m_rows_per_column); for (size_t j = (ee.x / m_item_w); j < t; j++) {