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

MEKA

Discord: mekaprojects
Süper Moderatör
Premium Üye
Grafiker
Geliştirici
Yardımsever Üye
Editör
Mesaj
2.746
Çözümler
286
Beğeni
1.989
Puan
1.349
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