[SCM] an open source computer algebra system branch, cleanedupstream, updated. 6125e540ca6d66c307958938a9d53b245507c323
Bernhard R. Link
brlink at debian.org
Tue Apr 24 15:55:34 UTC 2012
The following commit has been merged in the cleanedupstream branch:
commit da4b15cccda76d96edbf13fddeea506c025d2bfb
Author: Martin Lee <martinlee84 at web.de>
Date: Wed Apr 4 13:23:39 2012 +0200
fix: div by zero
diff --git a/factory/facFqFactorize.cc b/factory/facFqFactorize.cc
index 23c62d6..a7db9ab 100644
--- a/factory/facFqFactorize.cc
+++ b/factory/facFqFactorize.cc
@@ -1258,7 +1258,8 @@ distributeContent (const CFList& L, const CFList* differentSecondVarFactors,
g= gcd (iter2.getItem(), content);
if (degree (g) > 0)
{
- iter2.getItem() /= tmp;
+ if (!tmp.isZero())
+ iter2.getItem() /= tmp;
content /= g;
iter1.getItem() *= g;
}
--
an open source computer algebra system
More information about the debian-science-commits
mailing list