Changeset 95c826 in git


Ignore:
Timestamp:
Jan 18, 2013, 4:13:49 PM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'c987db42cd2ec943b97ac5746c99892ceddf909c')
Children:
5b32a17feb4f0be885f1224b99e80004ed814aab
Parents:
802b082a764f90d5988c4a3e70a438f757e3e775
git-author:
Martin Lee <martinlee84@web.de>2013-01-18 16:13:49+01:00
git-committer:
Martin Lee <martinlee84@web.de>2013-01-18 16:35:28+01:00
Message:
fix: some simple bugs in comparison
Location:
libpolys/polys/ext_fields
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/ext_fields/algext.cc

    r802b08 r95c826  
    414414  if (aDeg>bDeg) return TRUE;
    415415  if (aDeg<bDeg) return FALSE;
    416   return n_Greater(pGetCoeff((poly)a),pGetCoeff((poly)b),cf);
     416  return n_Greater(pGetCoeff((poly)a),pGetCoeff((poly)b),naCoeffs);
    417417}
    418418
  • libpolys/polys/ext_fields/transext.cc

    r802b08 r95c826  
    608608  ntTest(a);
    609609  ntTest(b);
    610   number aNumCoeff = NULL; int aNumDeg = 0;
    611   number bNumCoeff = NULL; int bNumDeg = 0;
     610  number aNumCoeff = NULL; int aNumDeg = -1;
     611  number bNumCoeff = NULL; int bNumDeg = -1;
    612612  if (!IS0(a))
    613613  {
     
    616616    aNumCoeff = p_GetCoeff(NUM(fa), ntRing);
    617617  }
     618  else return !(ntGreaterZero (b,cf));
    618619  if (!IS0(b))
    619620  {
     
    622623    bNumCoeff = p_GetCoeff(NUM(fb), ntRing);
    623624  }
     625  else return ntGreaterZero(a,cf);
    624626  if (aNumDeg > bNumDeg) return TRUE;
    625627  if (aNumDeg < bNumDeg) return FALSE;
Note: See TracChangeset for help on using the changeset viewer.