Browse Source

* 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 years ago
parent
commit
bfa4fc30cd
1 changed files with 1 additions and 1 deletions
  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;