Corrects the broken line number incrementation in the Windows resource parser

When the tokens MCLINE, MCENDLINE, and MCCOMMENT were created, the
line number was not increased, which led to an incorrect value in
the error output.

	PR 26088
	* mclex.c (skip_until_eol): if eol was found, increment line number
This commit is contained in:
Ralf Habacker 2020-08-27 15:59:53 +01:00 committed by Nick Clifton
parent b886559f31
commit 6b5473c97e
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
PR 26088
* mclex.c (skip_until_eol): If eol was found, increment line
number.
2020-08-27 Nick Alcock <nick.alcock@oracle.com>
* objdump.c (dump_ctf_errs): Unquote CTF error messages.

View file

@ -334,7 +334,10 @@ skip_until_eol (void)
if (input_stream_pos[0] == 0)
return 0;
if (input_stream_pos[0] == '\n')
++input_stream_pos;
{
++input_stream_pos;
input_line += 1;
}
return 1;
}