Fix comparison in UnbufferedCharStream.La

This commit is contained in:
Sam Harwell 2013-02-19 15:49:11 -06:00
parent 92c2c8947a
commit 0c97547a7e
1 changed files with 2 additions and 2 deletions

View File

@ -282,8 +282,8 @@ namespace Antlr4.Runtime
{
return IntStreamConstants.Eof;
}
int c = data[index];
if (c == (char)IntStreamConstants.Eof)
char c = data[index];
if (c == unchecked((char)IntStreamConstants.Eof))
{
return IntStreamConstants.Eof;
}