Fix warning about bit operation on sign-extended operand

This commit is contained in:
Sam Harwell 2013-02-25 12:43:43 -06:00
parent eb675668f4
commit 515af0e65a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}