mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:09:42 +02:00
* 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 -
This commit is contained in:
parent
4626f2c489
commit
bfa4fc30cd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user