浏览代码

* Correct check

Michaël Van Canneyt 4 月之前
父节点
当前提交
36e65b3464
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/ncon.pas

+ 1 - 1
compiler/ncon.pas

@@ -1242,7 +1242,7 @@ implementation
 
     function tstringconstnode.asconstpchar: pchar;
     begin
-      if len>0 then
+      if length(valueas)>0 then
         Result:=@valueas[0]
       else
         Result:=@cEmptyString;