Explorar o código

* Correct allocation size for IsHandled, index is 1-based

Michaël Van Canneyt hai 4 meses
pai
achega
6314d69c40
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/link.pas

+ 1 - 1
compiler/link.pas

@@ -1820,7 +1820,7 @@ Implementation
             hp:=TCmdStrListItem(hp.next);
           end;
         ScriptCount:=i;
-        SetLength(IsHandled,ScriptCount);
+        SetLength(IsHandled,ScriptCount+1); // 1-based index used.
       end;
 
     procedure TInternalLinker.ParseScript_PostCheck;