Ignore:
Timestamp:
May 19, 2014, 7:19:22 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'e7cc1ebecb61be8b9ca6c18016352af89940b21a')
Children:
984ff3b24d0cfc0f0c40172a5ef29ced17fd6741a93f95f272cf2777251e0e930411dedb45d02ba0
Parents:
cb6d87e20317d2aae47858d41fd24da57247554d
Message:
fix: ssi: sending OrdSgn==-1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/ring.cc

    rcb6d87e r868d77d  
    16081608  if (r1 == r2) return TRUE;
    16091609  if (r1 == NULL || r2 == NULL) return FALSE;
     1610  if (r1->cf!=r2->cf) return FALSE;
     1611  if (rVar(r1)!=rVar(r2)) return FALSE;
    16101612
    16111613  if( !rSamePolyRep(r1, r2) )
     
    16141616  int i/*, j*/;
    16151617
    1616   assume( r1->cf == r2->cf );
    1617   assume( rVar(r1) == rVar(r2) );
    1618 
    16191618  for (i=0; i<rVar(r1); i++)
    16201619  {
    1621     if (r1->names[i] != NULL && r2->names[i] != NULL)
     1620    if ((r1->names[i] != NULL) && (r2->names[i] != NULL))
    16221621    {
    16231622      if (strcmp(r1->names[i], r2->names[i])) return FALSE;
     
    37673766  int jj;
    37683767  int oo=-1;
     3768  int notfound=1;
    37693769  for(jj=i-1;jj>=0;jj--)
    37703770  {
     
    37843784      }
    37853785      oo=res;
     3786      notfound=0;
    37863787    }
    37873788    r->OrdSgn=oo;
    37883789  }
     3790  if (notfound
     3791  && (r->order[i]==ringorder_ls)
     3792     || (r->order[i]==ringorder_ds)
     3793     || (r->order[i]==ringorder_Ds)
     3794     || (r->order[i]==ringorder_ws)
     3795     || (r->order[i]==ringorder_Ws)
     3796     || (r->order[i]==ringorder_rs)
     3797  )
     3798    r->OrdSgn=-1;
    37893799}
    37903800
Note: See TracChangeset for help on using the changeset viewer.