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:
parent
aaa08e9a4e
commit
26ea7e36d5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue