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 cb5ce4f commit b3e27adCopy full SHA for b3e27ad
src/CLR/Core/CLR_RT_HeapBlock.cpp
@@ -1389,6 +1389,7 @@ bool CLR_RT_HeapBlock::ObjectsEqual(
1389
if (leftClassTotFields > 0 && rightClassTotFields > 0 && leftClassTotFields == rightClassTotFields)
1390
{
1391
int equalFieldsCount = 0;
1392
+ int totalFieldsCount = leftClassTotFields;
1393
1394
// loop through the fields and compare them
1395
do
@@ -1404,7 +1405,7 @@ bool CLR_RT_HeapBlock::ObjectsEqual(
1404
1405
} while (--leftClassTotFields > 0);
1406
1407
// check if all fields are equal
- return equalFieldsCount == leftClassTotFields;
1408
+ return equalFieldsCount == totalFieldsCount;
1409
}
1410
1411
0 commit comments