- fixed: ACC's TK_SkipPast and TK_SkipTo must check for reaching the end of file.

SVN r1586 (trunk)
This commit is contained in:
Christoph Oelckers 2009-05-15 21:03:22 +00:00
parent 02510cb7d9
commit fe20818022

View file

@ -666,7 +666,7 @@ int TK_NextCharacter(void)
void TK_SkipPast(tokenType_t token)
{
while (tk_Token != token)
while (tk_Token != token && tk_Token != TK_EOF)
{
TK_NextToken();
}
@ -681,7 +681,7 @@ void TK_SkipPast(tokenType_t token)
void TK_SkipTo(tokenType_t token)
{
while (tk_Token != token)
while (tk_Token != token && tk_Token != TK_EOF)
{
TK_NextToken();
}