The unsigned right shift operator (>>>
) of BigInteger behaves strangely
#112564
Labels
area-System.Numerics
in-pr
There is an active PR which will close this issue when it is merged
untriaged
New issue has not been triaged by the area owner
Description
The result of unsigned right shift (
>>>
) ofBigInteger
, whose internal array has the most significant value ofuint.MaxValue
and sign is negative, is wrong.The same problem exists with
RotateLeft
andRotateRight
.Reproduction Steps
Expected behavior
Actual behavior
Regression?
No response
Known Workarounds
No response
Configuration
.NET 7, .NET 8, .NET 9
Other information
Related #68964 #91169
The text was updated successfully, but these errors were encountered: