Prechádzať zdrojové kódy

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

git-svn-id: trunk@16216 -
florian 14 rokov pred
rodič
commit
dce3405c66
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  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
         if assigned(current_module) then
           current_module.sourcefiles.register_file(inputfile);
           current_module.sourcefiles.register_file(inputfile);
       { reset localinput }
       { reset localinput }
+        c:=#0;
         inputbuffer:=nil;
         inputbuffer:=nil;
         inputpointer:=nil;
         inputpointer:=nil;
         inputstart:=0;
         inputstart:=0;