Browse Source

* fixed compilation of threadvars in i8086 far data memory models

git-svn-id: trunk@31662 -
nickysn 10 năm trước cách đây
mục cha
commit
c7ecf84fc0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      compiler/ncgld.pas

+ 1 - 1
compiler/ncgld.pas

@@ -322,7 +322,7 @@ implementation
 
 
              { load the address of the result in hregister }
              { load the address of the result in hregister }
              hregister:=hlcg.getaddressregister(current_asmdata.CurrAsmList,fieldptrdef);
              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;
              tmpresloc.register:=hregister;
              hlcg.gen_load_cgpara_loc(current_asmdata.CurrAsmList,fieldptrdef,respara,tmpresloc,true);
              hlcg.gen_load_cgpara_loc(current_asmdata.CurrAsmList,fieldptrdef,respara,tmpresloc,true);
              respara.resetiftemp;
              respara.resetiftemp;