mirror of
https://github.com/ZDoom/acc.git
synced 2024-11-14 16:41:01 +00:00
- fixed: ACC's TK_SkipPast and TK_SkipTo must check for reaching the end of file.
SVN r1586 (trunk)
This commit is contained in:
parent
02510cb7d9
commit
fe20818022
1 changed files with 2 additions and 2 deletions
4
token.c
4
token.c
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue