Skip to content

Commit

Permalink
Fix case
Browse files Browse the repository at this point in the history
  • Loading branch information
sdmaclea committed Jun 2, 2021
1 parent 84a5f56 commit 393ad98
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/coreclr/vm/comdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,24 +225,24 @@ class ShuffleIterator
//
// Each offset is encode as a log2 size and a 12-bit unsigned scaled offset.
int bytesRemaining = m_argLocDesc->m_byteStackSize - m_currentByteStackIndex;
int log2size = 3;
int log2Size = 3;

switch(bytesRemaining)
{
case 1:
log2size = 0;
log2Size = 0;
m_currentByteStackIndex += 1;
break;
case 2:
case 3: // Handle same as 2 then 1
log2size = 1;
log2Size = 1;
m_currentByteStackIndex += 2;
break;
case 4:
case 5:
case 6:
case 7:
log2size = 2;
log2Size = 2;
m_currentByteStackIndex += 4;
break;
default:
Expand All @@ -253,14 +253,14 @@ class ShuffleIterator

// Delegates cannot handle overly large argument stacks due to shuffle entry encoding limitations.
// Arm64 current implementation only supports 12 bit unsigned scaled offset
if ((byteIndex >> log2size) > 0xfff)
if ((byteIndex >> log2Size) > 0xfff)
{
COMPlusThrow(kNotSupportedException);
}

_ASSERTE((byteIndex & ((1 << log2Size) - 1)) == 0);

return (byteIndex >> log2size) | (log2size << 12);
return (byteIndex >> log2Size) | (log2Size << 12);
#endif
}

Expand Down

0 comments on commit 393ad98

Please sign in to comment.