Skip to content

Commit 1d06d1a

Browse files
committed
Missed change
1 parent 46eaa6d commit 1d06d1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Include/PipeReflect.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,10 +970,10 @@ namespace p
970970
template<typename To, typename From>
971971
TPtr<To> Cast(const TPtr<From>& value)
972972
{
973-
if (Cast<To*>(value.Get()))
973+
if (Cast<To>(value.Get()))
974974
{
975975
// FIX: Multi inheritance may not make pointers directly compatible. Pass casted
976-
// ptr!
976+
// ptr into copy!
977977
TPtr<To> ptr{};
978978
ptr.CopyFromUnsafe(value);
979979
return ptr;

0 commit comments

Comments
 (0)