Fix enum size

This commit is contained in:
drmortalwombat 2022-01-26 12:41:12 +01:00
parent 792751e3a4
commit 94532fe038
2 changed files with 5 additions and 5 deletions

View File

@ -305,10 +305,10 @@ Declaration* Parser::ParseBaseTypeDeclaration(uint32 flags)
mErrors->Error(mScanner->mLocation, EERR_CONSTANT_TYPE, "Integer constant expected");
}
cdec->mInteger = nitem++;
if (dec->mInteger < minValue)
minValue = dec->mInteger;
else if (dec->mInteger > maxValue)
maxValue = dec->mInteger;
if (cdec->mInteger < minValue)
minValue = cdec->mInteger;
else if (cdec->mInteger > maxValue)
maxValue = cdec->mInteger;
if (mScanner->mToken == TK_COMMA)
mScanner->NextToken();

View File

@ -23,7 +23,7 @@ static const char * maze[16] =
"#.#####.#....#.#",
"#.......######.#",
"#.##.####......#",
"#.#..##....###.#",
"#.#..##...####.#",
"#.##....#....#.#",
"#.#####.######.#",
"#..............#",