Skip to content

Commit 91b7998

Browse files
committed
properly set the typeinfo after a successful TValue.TryCast as the internal Conv* routines don't
1 parent 61320b4 commit 91b7998

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/Base/Spring.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6658,6 +6658,8 @@ function TValueHelper.TryCast(ATypeInfo: PTypeInfo;
66586658
Exit(False);
66596659
end;
66606660
Result := TValueHack(Self).TryCast(ATypeInfo, AResult);
6661+
if Result then
6662+
TValueData(AResult).FTypeInfo := ATypeInfo;
66616663
end;
66626664

66636665

0 commit comments

Comments
 (0)