diff --git a/src/tged/TGListWnd.h b/src/tged/TGListWnd.h index 00670fc8..73387254 100644 --- a/src/tged/TGListWnd.h +++ b/src/tged/TGListWnd.h @@ -132,7 +132,7 @@ public: /* * This uses the RTTI hack to access private members on FListView; and this code *could* break as a consequence. */ - if (firstScrollLinePos > m_listView.getCount()) + if ((size_t)firstScrollLinePos > m_listView.getCount()) firstScrollLinePos = 0; if (firstScrollLinePos > 0 && m_listView.getCount() > 0) { (m_listView.*RTTIResult::ptr)(firstScrollLinePos);