Fixed signed/unsigned mismatch in comparisons

No more 'comparison of integers of different signs' warnings reported by GCC/Clang
This commit is contained in:
alexey.lysiuk 2017-01-05 15:45:15 +02:00 committed by Christoph Oelckers
commit 9ed2da176e
12 changed files with 22 additions and 22 deletions

View file

@ -3088,7 +3088,7 @@ line_t** linebuffer;
static void P_GroupLines (bool buildmap)
{
cycle_t times[16];
int* linesDoneInEachSector;
unsigned int* linesDoneInEachSector;
int i;
int total;
line_t* li;
@ -3156,7 +3156,7 @@ static void P_GroupLines (bool buildmap)
times[3].Clock();
linebuffer = new line_t *[total];
line_t **lineb_p = linebuffer;
linesDoneInEachSector = new int[numsectors];
linesDoneInEachSector = new unsigned int[numsectors];
memset (linesDoneInEachSector, 0, sizeof(int)*numsectors);
for (sector = sectors, i = 0; i < numsectors; i++, sector++)