forked from jasder/antlr
Fix comparison in UnbufferedCharStream.La
This commit is contained in:
parent
92c2c8947a
commit
0c97547a7e
|
@ -282,8 +282,8 @@ namespace Antlr4.Runtime
|
||||||
{
|
{
|
||||||
return IntStreamConstants.Eof;
|
return IntStreamConstants.Eof;
|
||||||
}
|
}
|
||||||
int c = data[index];
|
char c = data[index];
|
||||||
if (c == (char)IntStreamConstants.Eof)
|
if (c == unchecked((char)IntStreamConstants.Eof))
|
||||||
{
|
{
|
||||||
return IntStreamConstants.Eof;
|
return IntStreamConstants.Eof;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue