Преглед изворни кода

* fixed compilation of threadvars in i8086 far data memory models

git-svn-id: trunk@31662 -
nickysn пре 10 година
родитељ
комит
c7ecf84fc0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      compiler/ncgld.pas

+ 1 - 1
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;