summaryrefslogtreecommitdiff
path: root/dist/Math-BigInt
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-10-28 14:15:01 +0100
committerNicholas Clark <nick@ccl4.org>2010-10-29 14:42:40 +0100
commitf800d0e18f11d3c11bd1daa3a3643fef23b55dd1 (patch)
treeccfe262fc17b6555ac45d3deefe8a338b3ed92c2 /dist/Math-BigInt
parent7afc2217360681dc8e7e48a20a57eb14a33d079d (diff)
downloadperl-f800d0e18f11d3c11bd1daa3a3643fef23b55dd1.tar.gz
Reorder the list return of Math::BigInt::Calc::_base_len().
A search of CPAN shows that this private function is only used internally between Math::BigInt::Calc, Math::BigInt::FastCalc and their test suites.
Diffstat (limited to 'dist/Math-BigInt')
-rw-r--r--dist/Math-BigInt/lib/Math/BigInt/Calc.pm6
-rw-r--r--dist/Math-BigInt/t/bigintc.t2
-rw-r--r--dist/Math-BigInt/t/bigintpm.inc2
3 files changed, 5 insertions, 5 deletions
diff --git a/dist/Math-BigInt/lib/Math/BigInt/Calc.pm b/dist/Math-BigInt/lib/Math/BigInt/Calc.pm
index f3b5156e97..1fc03d481f 100644
--- a/dist/Math-BigInt/lib/Math/BigInt/Calc.pm
+++ b/dist/Math-BigInt/lib/Math/BigInt/Calc.pm
@@ -4,7 +4,7 @@ use 5.006002;
use strict;
# use warnings; # dont use warnings for older Perls
-our $VERSION = '0.55';
+our $VERSION = '0.56';
# Package to store unsigned big integers in decimal and do math with them
@@ -60,7 +60,7 @@ sub _base_len
$BASE = int("1e".$BASE_LEN);
$MAX_VAL = $BASE-1;
return $BASE_LEN unless wantarray;
- return ($BASE_LEN, $AND_BITS, $XOR_BITS, $OR_BITS, $BASE_LEN, $MAX_VAL, $BASE);
+ return ($BASE_LEN, $BASE, $AND_BITS, $XOR_BITS, $OR_BITS, $BASE_LEN, $MAX_VAL,);
}
# find whether we can use mul or div in mul()/div()
@@ -95,7 +95,7 @@ sub _base_len
}
}
return $BASE_LEN unless wantarray;
- return ($BASE_LEN, $AND_BITS, $XOR_BITS, $OR_BITS, $BASE_LEN, $MAX_VAL, $BASE);
+ return ($BASE_LEN, $BASE, $AND_BITS, $XOR_BITS, $OR_BITS, $BASE_LEN, $MAX_VAL);
}
sub _new
diff --git a/dist/Math-BigInt/t/bigintc.t b/dist/Math-BigInt/t/bigintc.t
index a1274f2a59..9b94aeb561 100644
--- a/dist/Math-BigInt/t/bigintc.t
+++ b/dist/Math-BigInt/t/bigintc.t
@@ -5,7 +5,7 @@ use Test::More tests => 375;
use Math::BigInt::Calc;
-my ($BASE_LEN, $AND_BITS, $XOR_BITS, $OR_BITS, $BASE_LEN_SMALL, $MAX_VAL) =
+my ($BASE_LEN, undef, $AND_BITS, $XOR_BITS, $OR_BITS, $BASE_LEN_SMALL, $MAX_VAL) =
Math::BigInt::Calc->_base_len();
print "# BASE_LEN = $BASE_LEN\n";
diff --git a/dist/Math-BigInt/t/bigintpm.inc b/dist/Math-BigInt/t/bigintpm.inc
index 3e80bd38cf..d28ff54bbf 100644
--- a/dist/Math-BigInt/t/bigintpm.inc
+++ b/dist/Math-BigInt/t/bigintpm.inc
@@ -583,7 +583,7 @@ is ($x, 23456);
# construct a number with a zero-hole of BASE_LEN_SMALL
{
- my @bl = $CL->_base_len(); my $bl = $bl[4];
+ my @bl = $CL->_base_len(); my $bl = $bl[5];
$x = '1' x $bl . '0' x $bl . '1' x $bl . '0' x $bl;
$y = '1' x (2*$bl);