mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 14:19:31 +02:00
* correctly encode bitpacked arrays of elements that can't be bitpacked
git-svn-id: trunk@32555 -
This commit is contained in:
parent
a27927e658
commit
da8d276766
@ -419,7 +419,8 @@ implementation
|
||||
llvmaddencodedtype_intern(tarraydef(def).elementdef,[],encodedstr);
|
||||
encodedstr:=encodedstr+'*';
|
||||
end
|
||||
else if is_packed_array(def) then
|
||||
else if is_packed_array(def) and
|
||||
(tarraydef(def).elementdef.typ in [enumdef,orddef]) then
|
||||
begin
|
||||
encodedstr:=encodedstr+'['+tostr(tarraydef(def).size div tarraydef(def).elementdef.packedbitsize)+' x ';
|
||||
{ encode as an array of integers with the size on which we
|
||||
|
Loading…
Reference in New Issue
Block a user