* fix Comp type casts to QWord and Int64

git-svn-id: trunk@40695 -
This commit is contained in:
svenbarth 2018-12-29 19:21:02 +00:00
parent 2c20643ba6
commit c3081f7cf3

View File

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