This is an automated email from the git hooks/post-receive script.

ppm-guest pushed a commit to annotated tag v0.37
in repository libmath-prime-util-perl.

commit 3054619bef0c734ee9f409cbfb151235d52d502f
Author: Dana Jacobsen <d...@acm.org>
Date:   Thu Jan 16 19:17:45 2014 -0800

    BigInt was upgrading to float in some cases
---
 lib/Math/Prime/Util/ZetaBigFloat.pm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/Math/Prime/Util/ZetaBigFloat.pm 
b/lib/Math/Prime/Util/ZetaBigFloat.pm
index 9b2e075..8119f41 100644
--- a/lib/Math/Prime/Util/ZetaBigFloat.pm
+++ b/lib/Math/Prime/Util/ZetaBigFloat.pm
@@ -280,7 +280,10 @@ sub _Recompute_Dk {
       $sum_n->bmul($d)->badd( $sum_d->copy->bmul($n) );
       $sum_d->bmul($d);
       $gcd = Math::BigInt::bgcd($sum_n, $sum_d);
-      do { $sum_n /= $gcd;  $sum_d /= $gcd; } unless $gcd->is_one;
+      do {
+        $sum_n = int($sum_n / $gcd);
+        $sum_d = int($sum_d / $gcd);
+      } unless $gcd->is_one;
       my $dmul = (2*$i+1) * (2*$i+2);
       $n->bmul($nterms+$i)->blsft(2);
       $d->bdiv($nterms-$i)->bmul($dmul);

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libmath-prime-util-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to