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:
coelckers 2016-03-28 23:53:12 +02:00
commit f2252cc675

View file

@ -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);
}