Fixed: TK_SkipLine() got stuck in an infinite loop when previous token was at the end of the file.

This commit is contained in:
m-x-d 2016-03-28 23:57:43 +03:00
parent 9c3896d579
commit e6543300c7

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