mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10: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);
|
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
|
// Skip the selected slot
|
||||||
if (i == m_selected_item->i)
|
if (i == m_selected_item->i)
|
||||||
continue;
|
continue;
|
||||||
@ -4556,7 +4556,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
|
|||||||
|
|
||||||
// Pickup all of the item from the list
|
// Pickup all of the item from the list
|
||||||
if (slct.count > 0) {
|
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
|
// Skip the selected slot
|
||||||
if (i == s.i)
|
if (i == s.i)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user