Fix the resizing condition of the line table
That was wasting one element. 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> * buildsym.c (record_line): Fix the resizing condition.
This commit is contained in:
parent
382aae0632
commit
bbe3dc410b
|
@ -1,3 +1,7 @@
|
|||
2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
|
||||
|
||||
* buildsym.c (record_line): Fix the resizing condition.
|
||||
|
||||
2020-04-01 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* value.h (value_literal_complex): Add comment.
|
||||
|
|
|
@ -695,7 +695,7 @@ buildsym_compunit::record_line (struct subfile *subfile, int line,
|
|||
}
|
||||
}
|
||||
|
||||
if (subfile->line_vector->nitems + 1 >= subfile->line_vector_length)
|
||||
if (subfile->line_vector->nitems >= subfile->line_vector_length)
|
||||
{
|
||||
subfile->line_vector_length *= 2;
|
||||
subfile->line_vector = (struct linetable *)
|
||||
|
|
Loading…
Reference in New Issue