* also allow TValue.AsExtended for Integer types

git-svn-id: trunk@43772 -
This commit is contained in:
svenbarth 2019-12-24 21:29:47 +00:00
parent a20209e691
commit 12ae68f503

View File

@ -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;