-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BigInt bit shift yields incorrect results #57502
Comments
I think it might do something with convert
|
it's calling this method
which I guess just returns why it does this I have no earthly idea; clearly this should be an OverflowError. maybe there can be a specialized |
Also, the overflow error for exponentiation should not happen? Imho it should compute or get killed by OOM. Should I create a separate issue for this? |
I think it's ok to have things error early if Julia knows that the operation will fail, for example there's precedent like this
although very possibly OOM kills are a pretty unpleasant experience in my opinion and I appreciate it when they can be avoided |
Hi,
When doing
big"2" << <big_number>
it yields0
. I am assuming it is becausebig"2"^<big_number>
throws an error, but I have not yet tested this. Here is a reproducer on 1.11.3:The text was updated successfully, but these errors were encountered: