浏览代码

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,