Browse Source

* Correct check

Michaël Van Canneyt 4 months ago
parent
commit
36e65b3464
1 changed files with 1 additions and 1 deletions
  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;