Fix wrong type in check inside OperatorPrecedence
This commit is contained in:
parent
72fa2127c8
commit
2345931528
|
@ -28,7 +28,7 @@ static int Precedence[] =
|
||||||
static int OperatorPrecedence(int Token) {
|
static int OperatorPrecedence(int Token) {
|
||||||
int Prec = Precedence[Token];
|
int Prec = Precedence[Token];
|
||||||
|
|
||||||
if(Prec == 0 || Token >= RET_VOID) {
|
if(Prec == 0 || Token >= LI_INT) {
|
||||||
DieMessage("Attempting to determine operator precedence of an EOF or INT literal", TokenNames[Token]);
|
DieMessage("Attempting to determine operator precedence of an EOF or INT literal", TokenNames[Token]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user