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

Int constructor instead of div for Int returns in gmp #23329

Merged
merged 1 commit into from
Aug 24, 2017

Conversation

musm
Copy link
Contributor

@musm musm commented Aug 18, 2017

For the Cint case there is no penalty. For the Culong case the current behavior may lead to an overflow without throwing an Inexact error (although very unlikely, since BigInt will likely overflow before popcount will be so large to trigger the bug in the truncation to Int ).

@musm
Copy link
Contributor Author

musm commented Aug 24, 2017

cc @rfourquet

@rfourquet rfourquet merged commit aa3d2be into JuliaLang:master Aug 24, 2017
@rfourquet
Copy link
Member

Thanks @musm !

@musm musm deleted the patch-12 branch August 24, 2017 17:12
@musm
Copy link
Contributor Author

musm commented Aug 24, 2017

Thanks @rfourquet

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 this pull request may close these issues.

2 participants