Переглянути джерело

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
             begin
               len:=length(cstringpattern);
               len:=length(cstringpattern);
               tokenwritesizeint(len);
               tokenwritesizeint(len);
-              recordtokenbuf.write(cstringpattern[1],length(cstringpattern));
+              recordtokenbuf.write(cstringpattern[1],len);
             end;
             end;
           _CCHAR,
           _CCHAR,
           _INTCONST,
           _INTCONST,