Browse Source

Partial revert "Immediately set the capacity"
(capacity assignments of type TFPHashObjectList)

Alligator-1 1 year ago
parent
commit
b64701da1b
1 changed files with 0 additions and 1 deletions
  1. 0 1
      compiler/pgenutil.pas

+ 0 - 1
compiler/pgenutil.pas

@@ -2963,7 +2963,6 @@ uses
 
 
         { add those defs back to the pending list for which we don't yet have
         { add those defs back to the pending list for which we don't yet have
           all method bodies }
           all method bodies }
-        current_module.pendingspecializations.capacity:=current_module.pendingspecializations.count+readdlist.count;
         for i:=0 to readdlist.count-1 do
         for i:=0 to readdlist.count-1 do
           current_module.pendingspecializations.add(tstoreddef(readdlist[i]).typename,readdlist[i]);
           current_module.pendingspecializations.add(tstoreddef(readdlist[i]).typename,readdlist[i]);