mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-04 14:47:17 +01:00
* fix Comp type casts to QWord and Int64
git-svn-id: trunk@40695 -
This commit is contained in:
parent
2c20643ba6
commit
c3081f7cf3
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user