mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01:00
Silence a -Wsign-compare warning for invlist indices
This commit is contained in:
parent
dade95e142
commit
c549e84abb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user