Changeset 5469a9 in git


Ignore:
Timestamp:
Jul 11, 2011, 4:36:17 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
6a7368df0618cc5b104f43cceb2a3f3b41ba9366
Parents:
3159bc2ac1c78d8c4f420ece3f4a45d3ba16d103
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-07-11 16:36:17+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:39:13+01:00
Message:
FIX: n_DivBy should work for fields as well!
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/coeffs.h

    r3159bc r5469a9  
    309309#endif
    310310
     311/// Test whether a can be divided by b?
    311312static inline BOOLEAN n_DivBy(number a, number b, const coeffs r)
    312313{
    313314  assume(r != NULL);
    314315#ifdef HAVE_RINGS
    315   assume(r->cfDivBy!=NULL); return r->cfDivBy(a,b,r);
     316  if( nCoeff_is_Ring(r) )
     317  {
     318    assume(r->cfDivBy!=NULL); return r->cfDivBy(a,b,r);
     319  }
    316320#endif
    317321  return !n_IsZero(b, r);
Note: See TracChangeset for help on using the changeset viewer.