* Fix tgenconst13

This commit is contained in:
Michaël Van Canneyt 2025-03-22 11:22:22 +01:00
parent b20f968454
commit 4b5c6ba3fc

View File

@ -211,7 +211,7 @@ uses
else
begin
getmem(sp,tstringconstnode(node).len+1);
move(tstringconstnode(node).asconstpchar,sp^,tstringconstnode(node).len+1);
move(tstringconstnode(node).asconstpchar^,sp^,tstringconstnode(node).len+1);
sym:=cconstsym.create_string(undefinedname,conststring,sp,tstringconstnode(node).len,fromdef);
prettyname:=''''+tstringconstnode(node).asconstpchar+'''';
end;