You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-mathematics/gfan/files/gfan-0.4-fix-polynomial.patch

15 lines
449 B

--- polynomial.cpp.orig 2010-02-07 08:21:23.494221736 +0000
+++ polynomial.cpp 2010-02-07 08:26:55.077158315 +0000
@@ -463,10 +463,8 @@
if(isMarked())
{
IntegerVector v=m;
- if(m.size()+1==newRing.getNumberOfVariables())
+ if(m.size()==newRing.getNumberOfVariables())
{
- v.grow(m.size()+1);
- v[m.size()]=degree-v.sum();
ret.mark(Monomial(newRing,v));
}
// assert(m.size()==newRing.getNumberOfVariables());