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

Issue in Rmpq_z_div(r, z, q) when z=0 #3

Closed
trizen opened this issue Apr 16, 2017 · 3 comments
Closed

Issue in Rmpq_z_div(r, z, q) when z=0 #3

trizen opened this issue Apr 16, 2017 · 3 comments

Comments

@trizen
Copy link

trizen commented Apr 16, 2017

Hi Rob,

There is a minor issue in Rmpq_z_div(r, z, q) when z holds the value 0.

use strict;
use warnings;

use Math::GMPz;
use Math::GMPq;

my $r = Math::GMPq->new('0');
my $z = Math::GMPz->new('0');
my $q = Math::GMPq->new('42');

Math::GMPq::Rmpq_z_div($r, $z, $q);

print $r;                        # should print '0'

Output:

[1]    31405 floating point exception (core dumped)  perl x.pl
@sisyphus
Copy link
Owner

sisyphus commented Apr 17, 2017 via email

@sisyphus
Copy link
Owner

I've just pushed Math-GMPq-0.45 to CPAN.
Hopefully this fixes the issue (along with the divby0 issues I mentioned above).
Cheers,
Rob

@trizen
Copy link
Author

trizen commented Apr 20, 2017

Hi Rob,

Fix confirmed here. Thank you very much.

Regards,
Daniel

@trizen trizen closed this as completed Apr 20, 2017
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