ソースを参照

* Fix compiling system unit

Michaël Van Canneyt 11 ヶ月 前
コミット
c883683b6a
1 ファイル変更2 行追加1 行削除
  1. 2 1
      packages/fcl-passrc/src/pscanner.pp

+ 2 - 1
packages/fcl-passrc/src/pscanner.pp

@@ -5548,6 +5548,7 @@ begin
   l:=length(FCurLine);
   {$endif}
   NestingLevel := 0;
+
   repeat
     if {$ifdef UsePChar}FTokenPos[0] = #0{$else}FTokenPos>l{$endif} then
       begin
@@ -5565,7 +5566,7 @@ begin
           FCurTokenString[OldLength] := LE[i];
         end;
       {$else}
-      FCurTokenString:=FCurTokenString+copy(FCurLine,TokenStart,SectionLength)+LineEnding; // Corrected JC
+      FCurTokenString:=FCurTokenString+copy(S,TokenStart,SectionLength)+LineEnding; // Corrected JC
       {$endif}
       if not FetchLocalLine then
       begin