* fix compilation on platforms that *do* have a Comp type

git-svn-id: trunk@40673 -
This commit is contained in:
svenbarth 2018-12-27 09:21:45 +00:00
parent 324a645bb5
commit f0753517b4

View File

@ -2050,7 +2050,7 @@ begin
otUQWord: Result := FData.FAsUInt64;
end
else if (Kind = tkFloat) and (TypeData^.FloatType = ftComp) then
Result := FData.FAsComp
Result := QWord(FData.FAsComp)
else
raise EInvalidCast.Create(SErrInvalidTypecast);
end;
@ -2069,7 +2069,7 @@ begin
otUQWord: Result := FData.FAsUInt64;
end
else if (Kind = tkFloat) and (TypeData^.FloatType = ftComp) then
Result := FData.FAsComp
Result := Int64(FData.FAsComp)
else
raise EInvalidCast.Create(SErrInvalidTypecast);
end;