From c7ecf84fc07b5f91317bf9dd30965c68e0d6c308 Mon Sep 17 00:00:00 2001 From: nickysn <nickysn@gmail.com> Date: Sun, 13 Sep 2015 12:52:23 +0000 Subject: [PATCH] * fixed compilation of threadvars in i8086 far data memory models git-svn-id: trunk@31662 - --- compiler/ncgld.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ncgld.pas b/compiler/ncgld.pas index 8a5b3577d2..171a9b9a10 100644 --- a/compiler/ncgld.pas +++ b/compiler/ncgld.pas @@ -322,7 +322,7 @@ implementation { load the address of the result in hregister } hregister:=hlcg.getaddressregister(current_asmdata.CurrAsmList,fieldptrdef); - location_reset(tmpresloc,LOC_REGISTER,OS_ADDR); + location_reset(tmpresloc,LOC_REGISTER,def_cgsize(fieldptrdef)); tmpresloc.register:=hregister; hlcg.gen_load_cgpara_loc(current_asmdata.CurrAsmList,fieldptrdef,respara,tmpresloc,true); respara.resetiftemp;