mirror of
https://github.com/ZDoom/acc.git
synced 2024-11-14 08:31:05 +00:00
Fixed: TK_SkipLine() got stuck in an infinite loop when previous token was at the end of the file.
This commit is contained in:
parent
9c3896d579
commit
e6543300c7
1 changed files with 1 additions and 1 deletions
2
token.c
2
token.c
|
@ -1573,5 +1573,5 @@ void TK_SkipLine(void)
|
|||
{
|
||||
char *sourcenow = tk_SourceName;
|
||||
int linenow = tk_Line;
|
||||
do TK_NextToken(); while (tk_Line == linenow && tk_SourceName == sourcenow);
|
||||
do TK_NextToken(); while (tk_Line == linenow && tk_SourceName == sourcenow && tk_Token != TK_EOF);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue