[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 3980a3c28f9c0ea37d8394a2e65e16efebc49793
Author: Martin Lee <martinlee84 at web.de>
Date:   Wed Apr 4 13:24:36 2012 +0200

    chg: check for GaloisFieldDomain

diff --git a/factory/DegreePattern.cc b/factory/DegreePattern.cc
index 8d6202e..85b08ab 100644
--- a/factory/DegreePattern.cc
+++ b/factory/DegreePattern.cc
@@ -16,6 +16,7 @@
 #include "cf_iter.h"
 #include "templates/ftmpl_functions.h"
 #include "gfops.h"
+#include "cf_factory.h"
 
 
 DegreePattern::DegreePattern (const CFList& l)
@@ -29,8 +30,13 @@ DegreePattern::DegreePattern (const CFList& l)
 
   Variable x= Variable (1);
   int p= getCharacteristic();
-  int d= getGFDegree();
-  char cGFName= gf_name;
+  int d= 0;
+  char cGFName;
+  if (CFFactory::gettype() == GaloisFieldDomain)
+  {
+    d= getGFDegree();
+    cGFName= gf_name;
+  }
   setCharacteristic(0);
   CanonicalForm buf= 1;
   CFListIterator k= l;

-- 
an open source computer algebra system



More information about the debian-science-commits mailing list