|
@@ -423,10 +423,10 @@ interface
|
|
case tstringdef(resultdef).stringtype of
|
|
case tstringdef(resultdef).stringtype of
|
|
st_shortstring :
|
|
st_shortstring :
|
|
begin
|
|
begin
|
|
- tg.gethltemp(current_asmdata.CurrAsmList,cshortstringtype,256,tt_normal,location.reference);
|
|
|
|
|
|
+ tg.gethltemp(current_asmdata.CurrAsmList,resultdef,resultdef.size,tt_normal,location.reference);
|
|
tmpref:=location.reference;
|
|
tmpref:=location.reference;
|
|
hlcg.g_ptrtypecast_ref(current_asmdata.CurrAsmList,
|
|
hlcg.g_ptrtypecast_ref(current_asmdata.CurrAsmList,
|
|
- cpointerdef.getreusable(cshortstringtype),
|
|
|
|
|
|
+ cpointerdef.getreusable(resultdef),
|
|
cpointerdef.getreusable(left.resultdef),tmpref);
|
|
cpointerdef.getreusable(left.resultdef),tmpref);
|
|
hlcg.a_load_loc_ref(current_asmdata.CurrAsmList,left.resultdef,left.resultdef,left.location,
|
|
hlcg.a_load_loc_ref(current_asmdata.CurrAsmList,left.resultdef,left.resultdef,left.location,
|
|
tmpref);
|
|
tmpref);
|