浏览代码

* fix size calculation for packed arrays: it is not required to take alignment into account. Fixes tparray5 on 64 bit cpus

git-svn-id: trunk@5050 -
tom_at_work 19 年之前
父节点
当前提交
bfa4fc30cd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/symdef.pas

+ 1 - 1
compiler/symdef.pas

@@ -2594,7 +2594,7 @@ implementation
           end;
 
         if (ado_IsBitPacked in arrayoptions) then
-          size:=align(cachedelesize * cachedelecount,alignment*8) div 8
+          size:=(cachedelesize * cachedelecount + 7) div 8
         else
           result:=cachedelesize*cachedelecount;
       end;