From c549e84abba60ae36e44e91ca8765e80ed44e5eb Mon Sep 17 00:00:00 2001 From: Desour Date: Mon, 12 Jun 2023 18:58:00 +0200 Subject: [PATCH] Silence a -Wsign-compare warning for invlist indices --- src/gui/guiFormSpecMenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index 764e068ca..9b9783b8a 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -4376,7 +4376,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event) ItemStack slct = list_selected->getItem(m_selected_item->i); - for (s32 i = 0; i < list_s->getSize(); i++) { + for (s32 i = 0; i < (s32)list_s->getSize(); i++) { // Skip the selected slot if (i == m_selected_item->i) continue; @@ -4556,7 +4556,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event) // Pickup all of the item from the list if (slct.count > 0) { - for (s32 i = 0; i < list_s->getSize(); i++) { + for (s32 i = 0; i < (s32)list_s->getSize(); i++) { // Skip the selected slot if (i == s.i) continue;