소스 검색

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

Michaël Van Canneyt 4 달 전
부모
커밋
6314d69c40
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;