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

powm with zero modulus raises sigfpe #62

Closed
TyOverby opened this issue Sep 25, 2019 · 2 comments
Closed

powm with zero modulus raises sigfpe #62

TyOverby opened this issue Sep 25, 2019 · 2 comments

Comments

@TyOverby
Copy link

$ utop
utop # Zarith.Z.(powm (of_string "-27") (of_string "1") (of_string "0"));;
Floating point exception (core dumped)
$ 
@antoinemine
Copy link
Collaborator

Thanks for the report! PR #60 has been updated to fix this (as well as some memory leaks when exceptions are raised).

@antoinemine
Copy link
Collaborator

PR merged !

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

No branches or pull requests

2 participants