|
@@ -948,20 +948,15 @@ implementation
|
|
|
dogetcopy:=n;
|
|
|
end;
|
|
|
|
|
|
+
|
|
|
function tstringconstnode.pass_typecheck:tnode;
|
|
|
- var
|
|
|
- l : aint;
|
|
|
begin
|
|
|
result:=nil;
|
|
|
case cst_type of
|
|
|
cst_conststring :
|
|
|
begin
|
|
|
{ handle and store as array[0..len-1] of char }
|
|
|
- if len>0 then
|
|
|
- l:=len-1
|
|
|
- else
|
|
|
- l:=0;
|
|
|
- resultdef:=carraydef.create(0,l,s32inttype);
|
|
|
+ resultdef:=carraydef.create(0,len-1,s32inttype);
|
|
|
tarraydef(resultdef).elementdef:=cansichartype;
|
|
|
include(tarraydef(resultdef).arrayoptions,ado_IsConstString);
|
|
|
end;
|
|
@@ -981,6 +976,7 @@ implementation
|
|
|
end;
|
|
|
end;
|
|
|
|
|
|
+
|
|
|
function tstringconstnode.pass_1 : tnode;
|
|
|
begin
|
|
|
result:=nil;
|