linecounting fix for push/pop(line) pragmas

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-25 18:13:46 +01:00
parent e3acdcf0a9
commit f65dbda659

View file

@ -445,7 +445,8 @@ static bool lex_try_pragma(lex_file *lex)
if (!strcmp(command, "push")) {
if (!strcmp(param, "line")) {
lex->push_line++;
--line;
if (lex->push_line == 1)
--line;
}
else
goto unroll;
@ -454,7 +455,8 @@ static bool lex_try_pragma(lex_file *lex)
if (!strcmp(param, "line")) {
if (lex->push_line)
lex->push_line--;
--line;
if (lex->push_line == 0)
--line;
}
else
goto unroll;