소스 검색

compiler: minor optimization of tscannerfile.recordtoken

git-svn-id: trunk@23798 -
paul 12 년 전
부모
커밋
3682fddc49
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/scanner.pas

+ 1 - 1
compiler/scanner.pas

@@ -2635,7 +2635,7 @@ In case not, the value returned can be arbitrary.
             begin
               len:=length(cstringpattern);
               tokenwritesizeint(len);
-              recordtokenbuf.write(cstringpattern[1],length(cstringpattern));
+              recordtokenbuf.write(cstringpattern[1],len);
             end;
           _CCHAR,
           _INTCONST,