You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen this occur for -18446744073709543424 and -79228162514264337593543917568. Appears to be related to the underlying array representation since it's possible to construct the same values in a way that the shift works.
Configuration
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19042
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.100-rc.2.20479.15\
Host (useful for support):
Version: 5.0.0-rc.2.20475.5
Commit: c5a3f49
Regression?
Appears to occur on .NET Framework as well so probably a bug that's been there for a long time?
The text was updated successfully, but these errors were encountered:
Description
It appears that right shifting certain negative
BigInteger
values by 32 incorrectly results in 0.I've seen this occur for -18446744073709543424 and -79228162514264337593543917568. Appears to be related to the underlying array representation since it's possible to construct the same values in a way that the shift works.
Configuration
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19042
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.100-rc.2.20479.15\
Host (useful for support):
Version: 5.0.0-rc.2.20475.5
Commit: c5a3f49
Regression?
Appears to occur on .NET Framework as well so probably a bug that's been there for a long time?
The text was updated successfully, but these errors were encountered: