- fixed compilation warnings reported by GCC and Clang

src/common/menu/menudef.cpp:785:19: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
src/playsim/p_pspr.cpp:178:3: warning: field 'processPending' will be initialized after field 'HAlign' [-Wreorder]
This commit is contained in:
alexey.lysiuk 2020-10-31 12:18:13 +02:00
commit 112640e6c0
2 changed files with 7 additions and 7 deletions

View file

@ -769,8 +769,8 @@ static int GetInsertIndex(FScanner& sc, DMenuDescriptor* desc)
// Find an existing menu item to use as insertion point
sc.MustGetString();
auto n = desc->mItems.Size();
for (unsigned int i = 0; i < n; i++)
int n = desc->mItems.Size();
for (int i = 0; i < n; i++)
{
auto item = desc->mItems[i];