mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 08:49:33 +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);
|
||||
end;
|
||||
end
|
||||
else if Kind in [tkInteger, tkInt64, tkQWord] then
|
||||
Result := AsInt64
|
||||
else
|
||||
raise EInvalidCast.Create(SErrInvalidTypecast);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user