Skip to content

Commit

Permalink
- Use Math::Prime::Util::GMP::subint() instead of `Math::Prime::Uti…
Browse files Browse the repository at this point in the history
…l::subint()` in Number `_cook_usigma`.

Math::Prime::Util::subint() is available only in MPU >= 0.74, which is not currently released.
  • Loading branch information
trizen committed Jan 18, 2021
1 parent 94fffd9 commit 53d97f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Sidef/Types/Number/Number.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13806,7 +13806,7 @@ package Sidef::Types::Number::Number {

foreach my $d (_divisors($N)) {

Math::Prime::Util::GMP::is_prime_power(Math::Prime::Util::subint($d, 1)) || next;
Math::Prime::Util::GMP::is_prime_power(Math::Prime::Util::GMP::subint($d, 1)) || next;

my $u = Math::GMPz::Rmpz_init();
my $v = Math::GMPz::Rmpz_init();
Expand Down
2 changes: 1 addition & 1 deletion scripts/draw_a_cuboid.sf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const dirs = Hash("-" => [1,0], "|" => [0,1], "/" => [1,1])
 
func cuboid(nx, ny, nz) {
say("cuboid %d %d %d:" % [nx, ny, nz])
say("cuboid %d %d %d:" % (nx, ny, nz))
var(x, y, z) = (8*nx, 2*ny, 4*nz)
var area = []
var line = func(n, sx, sy, c) {
Expand Down

0 comments on commit 53d97f4

Please sign in to comment.