Skip to content
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

mpz(1)>>111111111111111111111 raises OverflowError #524

Open
skirpichev opened this issue Oct 17, 2024 · 0 comments · May be fixed by #525
Open

mpz(1)>>111111111111111111111 raises OverflowError #524

skirpichev opened this issue Oct 17, 2024 · 0 comments · May be fixed by #525

Comments

@skirpichev
Copy link
Contributor

Probably, we should just return 0 instead (if the rhs doesn't fit in mp_bitcnt_t), something that CPython does.

Perhaps, this will address that Sage failure: sagemath/sage#38565 (comment)

I'll work on a patch.

skirpichev added a commit to skirpichev/gmpy that referenced this issue Oct 17, 2024
@skirpichev skirpichev linked a pull request Oct 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant