mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 17:30:50 +00:00
Grow the Span collection before adding spans for the segments. This means that
in most cases the colection will have the optimal size. git-svn-id: svn://svn.cc65.org/cc65/trunk@5157 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
b8d43cee42
commit
762d4d9ea2
@ -90,6 +90,9 @@ void OpenSpans (Collection* Spans)
|
||||
{
|
||||
unsigned I;
|
||||
|
||||
/* Grow the Spans collection as necessary */
|
||||
CollGrow (Spans, CollCount (&SegmentList));
|
||||
|
||||
/* Add the currently active segment */
|
||||
CollAppend (Spans, NewSpan (ActiveSeg, ActiveSeg->PC, ActiveSeg->PC));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user