* better handling of floating point types

git-svn-id: trunk@36908 -
This commit is contained in:
svenbarth 2017-08-14 20:28:41 +00:00
parent 9a7d26e349
commit 89e47e098a

View File

@ -508,7 +508,10 @@ begin
tkFloat : begin
case GetTypeData(ATypeInfo)^.FloatType of
ftCurr : result.FData.FAsCurr := PCurrency(ABuffer)^;
ftSingle : result.FData.FAsSingle := PSingle(ABuffer)^;
ftDouble : result.FData.FAsDouble := PDouble(ABuffer)^;
ftExtended: result.FData.FAsExtended := PExtended(ABuffer)^;
ftComp : result.FData.FAsComp := PComp(ABuffer)^;
end;
end;
else
@ -563,6 +566,7 @@ begin
if Kind = tkFloat then
begin
case TypeData^.FloatType of
ftSingle : result := FData.FAsSingle;
ftDouble : result := FData.FAsDouble;
ftExtended : result := FData.FAsExtended;
else