Browse Source

* Fix lineending not being a char

git-svn-id: trunk@34759 -
michael 8 years ago
parent
commit
34ad4c29bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-passrc/src/pscanner.pp

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

@@ -1740,7 +1740,7 @@ begin
               if SectionLength > 1 then
               if SectionLength > 1 then
                 Move(TokenStart^, FCurTokenString[OldLength + 1], SectionLength - 1);
                 Move(TokenStart^, FCurTokenString[OldLength + 1], SectionLength - 1);
               Inc(OldLength, SectionLength);
               Inc(OldLength, SectionLength);
-              FCurTokenString[OldLength] := LineEnding;
+              FCurTokenString[OldLength] := #10;
               if not FetchLine then
               if not FetchLine then
                 begin
                 begin
                 Result := tkEOF;
                 Result := tkEOF;