Skip to content

Commit

Permalink
Fix EnCFieldIndex check
Browse files Browse the repository at this point in the history
  • Loading branch information
hoyosjs committed Apr 25, 2023
1 parent 28d6ec9 commit c492151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/vm/methodtable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2090,7 +2090,7 @@ PTR_FieldDesc MethodTable::GetFieldDescByIndex(DWORD fieldIndex)

// Check if the field index is for an EnC field lookup.
// See GetIndexForFieldDesc() for when this is applied and why.
if (fieldIndex | EnCFieldIndex)
if ((fieldIndex & EnCFieldIndex) == EnCFieldIndex)
{
DWORD rid = fieldIndex & ~EnCFieldIndex;
LOG((LF_ENC, LL_INFO100, "MT:GFDBI: rid:0x%08x\n", rid));
Expand Down

0 comments on commit c492151

Please sign in to comment.