Skip to content

Commit

Permalink
Fix dotnet#65633, multiplication overflow causing incorrect right shi…
Browse files Browse the repository at this point in the history
…ft results
  • Loading branch information
dakersnar committed Apr 11, 2022
1 parent 09d8346 commit 8f684fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2204,7 +2204,7 @@ stackalloc uint[BigIntegerCalculator.StackAllocThreshold]

if (negx)
{
if (shift >= (kcbitUint * xd.Length))
if (shift >= ((long) kcbitUint * xd.Length))
{
result = MinusOne;
goto exit;
Expand Down

0 comments on commit 8f684fc

Please sign in to comment.