mirror of
https://github.com/ZDoom/acc.git
synced 2025-02-11 22:37:54 +00:00
Merge pull request #46 from m-x-d/master
Fixed: TK_SkipLine() got stuck in an infinite loop when previous toke…
This commit is contained in:
commit
f2252cc675
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