Skip to content

Commit

Permalink
Unpack the factors returned by _miller_factor in is_super_psp and…
Browse files Browse the repository at this point in the history
… `is_over_psp`.
  • Loading branch information
trizen committed Aug 28, 2020
1 parent bb22a31 commit 89e542c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Sidef/Types/Number/Number.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11372,7 +11372,7 @@ package Sidef::Types::Number::Number {
return 1;
};

my @factors = _miller_factor($z);
my @factors = map { ref($_) ? Math::GMPz::Rmpz_get_str($_, 10) : $_ } _miller_factor($z);

if (scalar(@factors) > 1 and !Math::GMPz::Rmpz_fits_ulong_p($z)) {

Expand Down Expand Up @@ -11463,7 +11463,7 @@ package Sidef::Types::Number::Number {
return 1;
};

my @factors = _miller_factor($z);
my @factors = map { ref($_) ? Math::GMPz::Rmpz_get_str($_, 10) : $_ } _miller_factor($z);

if (scalar(@factors) > 1 and !Math::GMPz::Rmpz_fits_ulong_p($z)) {

Expand Down

0 comments on commit 89e542c

Please sign in to comment.