소스 검색

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

git-svn-id: trunk@25244 -
florian 12 년 전
부모
커밋
0a22199738
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 }