We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4fce97 commit 641c611Copy full SHA for 641c611
src/CLR/Core/Interpreter.cpp
@@ -3153,6 +3153,14 @@ HRESULT CLR_RT_Thread::Execute_IL(CLR_RT_StackFrame &stackArg)
3153
{
3154
size = c_CLR_RT_DataTypeLookup[elemDT].m_sizeInBytes;
3155
}
3156
+ else if (
3157
+ (expectedType.target->flags & CLR_RECORD_TYPEDEF::TD_Semantics_Mask) ==
3158
+ CLR_RECORD_TYPEDEF::TD_Semantics_ValueType)
3159
+ {
3160
+ size =
3161
+ (CLR_RT_HeapBlock::HB_Object_Fields_Offset + +expectedType.CrossReference().totalFields) *
3162
+ sizeof(CLR_RT_HeapBlock);
3163
+ }
3164
3165
// Store the value into the actual array buffer
3166
NANOCLR_CHECK_HRESULT(evalPos[3].StoreToReference(evalPos[1], size));
0 commit comments