Changeset 3711828 in git


Ignore:
Timestamp:
May 28, 2015, 1:54:29 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
9750e3ed7db2557ee2bc1ca59771e04ecff78d78
Parents:
dd81822450b61f9d468aaf4fac10d35a7ee90621
Message:
fix: id_SimpleAdd (Manual/tmatrix.tst, Manual/goodbasis.ts etc.)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/simpleideals.cc

    rdd8182 r3711828  
    603603  id_Test(h2, R);
    604604
    605   if ( idIs0(h1) ) return id_Copy(h2,R);
    606   if ( idIs0(h2) ) return id_Copy(h1,R);
     605  if ( idIs0(h1) )
     606  {
     607    ideal res=id_Copy(h2,R);
     608    if (res->rank<h1->rank) res->rank=h1->rank;
     609    return res;
     610  }
     611  if ( idIs0(h2) )
     612  {
     613    ideal res=id_Copy(h1,R);
     614    if (res->rank<h2->rank) res->rank=h2->rank;
     615    return res;
     616  }
    607617
    608618  int j = IDELEMS(h1)-1;
Note: See TracChangeset for help on using the changeset viewer.