mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 00:09:17 +02:00
* also allow TValue.AsExtended for Integer types
git-svn-id: trunk@43772 -
This commit is contained in:
parent
a20209e691
commit
12ae68f503
@ -1834,6 +1834,8 @@ begin
|
|||||||
raise EInvalidCast.Create(SErrInvalidTypecast);
|
raise EInvalidCast.Create(SErrInvalidTypecast);
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
|
else if Kind in [tkInteger, tkInt64, tkQWord] then
|
||||||
|
Result := AsInt64
|
||||||
else
|
else
|
||||||
raise EInvalidCast.Create(SErrInvalidTypecast);
|
raise EInvalidCast.Create(SErrInvalidTypecast);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user