Skip to content

Commit

Permalink
fix EnsureIntegerInRange
Browse files Browse the repository at this point in the history
  • Loading branch information
Hecate2 committed Sep 18, 2024
1 parent 11a01b2 commit 4092fa4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ private void EnsureIntegerInRange(ITypeSymbol type)
}
else
{
adjustTarget.Instruction = Push(mask);
AddInstruction(OpCode.AND);
adjustTarget.Instruction = Push(mask + 1);
AddInstruction(OpCode.MOD);
if (minValue < 0)
{
AddInstruction(OpCode.DUP);
Expand Down

0 comments on commit 4092fa4

Please sign in to comment.