Explorar o código

+ fix from Robert Zierer

michael %!s(int64=22) %!d(string=hai) anos
pai
achega
8822018ebd
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      utils/tply/lexrules.pas

+ 4 - 1
utils/tply/lexrules.pas

@@ -206,7 +206,10 @@ function act_char : Char;
     else
       begin
         while pop_macro do ;
-        act_char := buf[bufptr];
+        if (bufptr>0) then
+          act_char := buf[bufptr]
+        else  
+          act_char:=#0;
       end
   end(*act_char*);