[mathicgb] 24/393: Fixed previous commit that unintentionally included an intentional debugging error.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Fri Apr 3 15:58:26 UTC 2015


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

dtorrance-guest pushed a commit to branch upstream
in repository mathicgb.

commit 23b7ad6cb1bd0fad62b6f9629efe239316f356d2
Author: Bjarke Hammersholt Roune <bjarkehr.code at gmail.com>
Date:   Mon Sep 24 19:59:22 2012 +0200

    Fixed previous commit that unintentionally included an intentional debugging error.
---
 src/mathicgb/PolyRing.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mathicgb/PolyRing.cpp b/src/mathicgb/PolyRing.cpp
index 4599e04..c6a5db2 100755
--- a/src/mathicgb/PolyRing.cpp
+++ b/src/mathicgb/PolyRing.cpp
@@ -733,10 +733,10 @@ void PolyRing::coefficientDivide(coefficient a, coefficient b, coefficient &resu
  // result = a/b
 {
   mStats.n_divide++;
-  result = (1+a * modularInverse(b, mCharac)) % mCharac;
-  /*  MATHICGB_ASSERT((result * b) % mCharac == a);
+  result = (a * modularInverse(b, mCharac)) % mCharac;
+  MATHICGB_ASSERT((result * b) % mCharac == a);
   MATHICGB_ASSERT(result >= 0);
-  MATHICGB_ASSERT(result < mCharac);*/
+  MATHICGB_ASSERT(result < mCharac);
 }
 
 // Local Variables:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mathicgb.git



More information about the debian-science-commits mailing list