forked from jasder/antlr
Fix warning about bit operation on sign-extended operand
This commit is contained in:
parent
eb675668f4
commit
515af0e65a
|
@ -420,7 +420,7 @@ namespace Antlr4.Runtime.Atn
|
|||
protected internal virtual long GetKey(ATNConfig e)
|
||||
{
|
||||
long key = e.State.stateNumber;
|
||||
key = (key << 12) | (e.Alt & unchecked((int)(0xFFF)));
|
||||
key = (key << 12) | (e.Alt & 0xFFFL);
|
||||
return key;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue