소스 검색

* reset lookahead char as well when resetting the scanner, resolves #17688

git-svn-id: trunk@16216 -
florian 15 년 전
부모
커밋
dce3405c66
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      compiler/scanner.pas

+ 1 - 0
compiler/scanner.pas

@@ -1876,6 +1876,7 @@ In case not, the value returned can be arbitrary.
         if assigned(current_module) then
           current_module.sourcefiles.register_file(inputfile);
       { reset localinput }
+        c:=#0;
         inputbuffer:=nil;
         inputpointer:=nil;
         inputstart:=0;