mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 17:29:50 +00:00
Grow the line info collection as needed before actually adding items. This
reduces memory consumption. git-svn-id: svn://svn.cc65.org/cc65/trunk@5164 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
17e2276f38
commit
e7fe36399b
@ -129,6 +129,9 @@ void ReadLineInfoList (FILE* F, ObjData* O, Collection* LineInfos)
|
||||
/* Read the number of line info indices that follow */
|
||||
unsigned LineInfoCount = ReadVar (F);
|
||||
|
||||
/* Grow the collection as needed */
|
||||
CollGrow (LineInfos, LineInfoCount);
|
||||
|
||||
/* Read the line infos and resolve them */
|
||||
while (LineInfoCount--) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user