From a28eaa46d4f13a2991979bea28f16187e470f56e Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Mon, 23 Dec 2024 15:01:27 -0500 Subject: [PATCH] silence warning; --- src/tged/TGListWnd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);