Browse Source

* always use the varrec size retrieved from the system unit when advancing to the next element

git-svn-id: trunk@25244 -
florian 12 years ago
parent
commit
0a22199738
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/ncgld.pas

+ 1 - 1
compiler/ncgld.pas

@@ -1337,7 +1337,7 @@ implementation
                  dec(href.offset,sizeof(pint));
                  cg.a_load_const_ref(current_asmdata.CurrAsmList, OS_INT,vtype,href);
                  { goto next array element }
-                 advancearrayoffset(href,sizeof(pint)*2);
+                 advancearrayoffset(href,elesize);
                end
               else
               { normal array constructor of the same type }