* correctly handle record, set and array results if no extended parameter information is available

git-svn-id: trunk@40669 -
This commit is contained in:
svenbarth 2018-12-26 22:59:45 +00:00
parent 8c52dc30ce
commit 9eac2ea852

View File

@ -100,6 +100,24 @@ begin
tkInterface,
tkDynArray:
Result := True;
tkArray: begin
td := GetTypeData(aType);
Result := not (td^.ArrayData.Size in [1, 2, 4, 8]);
end;
tkRecord: begin
td := GetTypeData(aType);
Result := not (td^.RecSize in [1, 2, 4, 8]);
end;
tkSet: begin
td := GetTypeData(aType);
case td^.OrdType of
otUByte:
Result := not (td^.SetSize in [1, 2, 4, 8]);
otUWord,
otULong:
Result := False;
end;
end;
end;
end;
end;