char_item.cpp: if (item->GetSocket(0) >= _countof(aApplyInfo)) [-Wsign-compare] Warning

MEKA

Discord: mekaprojects
Site yetkilisi
Süper Moderatör
Premium Üye
Grafiker
Geliştirici
Yardımsever Üye
Mesaj
2.788
Çözümler
287
Beğeni
2.033
Puan
1.850
Ticaret Puanı
2
ALINAN HATA:
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(LPITEM, TItemPos)':
char_item.cpp:5088:28: warning: comparison of integer expressions of different signedness: 'long int' and 'unsigned int' [-Wsign-compare]
 5088 |     if (item->GetSocket(0) >= _countof(aApplyInfo))

Çözümü:
ARAT:
                if (item->GetSocket(0) >= _countof(aApplyInfo))
DEĞİŞTİR:
                if ((unsigned)item->GetSocket(0) >= _countof(aApplyInfo))
 
Geri
Üst