1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-05 06:28:57 +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:
uz 2011-08-12 16:10:34 +00:00
parent b8d43cee42
commit 762d4d9ea2

View File

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