Skip to content

Commit

Permalink
Silence a -Wsign-compare warning for invlist indices
Browse files Browse the repository at this point in the history
  • Loading branch information
Desour committed Jun 15, 2023
1 parent dade95e commit c549e84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/guiFormSpecMenu.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c549e84

Please sign in to comment.