1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fix Variant<T>.Get<T>() Crash

This commit is contained in:
disarray2077 2022-08-14 19:48:53 -03:00 committed by GitHub
parent aaa08e9a4e
commit 26ea7e36d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -293,7 +293,7 @@ namespace System
obj = (T)Internal.UnsafeCastToObject(*(void**)(void*)mData);
else
obj = (T)Internal.UnsafeCastToObject((void*)mData);
Debug.Assert(obj.GetType().IsSubtypeOf(type));
Debug.Assert(obj == null || obj.GetType().IsSubtypeOf(type));
return obj;
}