Browse Source

* fixed size when storing arrayconstructor vtype field

git-svn-id: trunk@32215 -
Jonas Maebe 9 years ago
parent
commit
2c5187cb97
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/ncgld.pas

+ 1 - 1
compiler/ncgld.pas

@@ -1355,7 +1355,7 @@ implementation
                  { update href to the vtype field and write it }
                  fref:=href;
                  hlcg.g_set_addr_nonbitpacked_record_field_ref(current_asmdata.CurrAsmList,trecorddef(eledef),varvtypefield,fref);
-                 hlcg.a_load_const_ref(current_asmdata.CurrAsmList,cpointerdef.getreusable(varvtypefield.vardef),vtype,fref);
+                 hlcg.a_load_const_ref(current_asmdata.CurrAsmList,varvtypefield.vardef,vtype,fref);
                  { goto next array element }
                  advancearrayoffset(href,elesize);
                end