浏览代码

+ fix from Robert Zierer

michael 22 年之前
父节点
当前提交
8822018ebd
共有 1 个文件被更改,包括 4 次插入1 次删除
  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*);