2
0
Эх сурвалжийг харах

* 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 жил өмнө
parent
commit
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;