Changeset 073e96 in git


Ignore:
Timestamp:
Aug 3, 2011, 2:39:13 PM (12 years ago)
Author:
Burcin Erocal <burcin@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
0a175571d14442df414738e8fca26cdc4adb8dc6
Parents:
9d4b8cd59b57658f59577acd8fb7501642b875a8
git-author:
Burcin Erocal <burcin@erocal.org>2011-08-03 14:39:13+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 13:01:22+01:00
Message:
Fix kernel/kspoly.cc.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/kspoly.cc

    r9d4b8c r073e96  
    8181      poly _p = (PR->t_p != NULL ? PR->t_p : PR->p);
    8282      assume(_p != NULL);
    83       nc_PolyPolyRed(_p, p2,coef);
     83      nc_PolyPolyRed(_p, p2,coef, currRing);
    8484      if (PR->t_p!=NULL) PR->t_p=_p; else PR->p=_p;
    85       PR->pLength=0; // usaully not used, GetpLength re-comoutes it if needed
     85      PR->pLength=0; // usually not used, GetpLength re-computes it if needed
    8686    }
    8787    return 0;
     
    122122    number bn = pGetCoeff(lm);
    123123    number an = pGetCoeff(p2);
    124     int ct = ksCheckCoeff(&an, &bn);    // Calculate special LC
     124    int ct = ksCheckCoeff(&an, &bn, tailRing->cf);    // Calculate special LC
    125125    p_SetCoeff(lm, bn, tailRing);
    126126    if ((ct == 0) || (ct == 2))
     
    188188  poly a1 = pNext(p1), a2 = pNext(p2);
    189189  number lc1 = pGetCoeff(p1), lc2 = pGetCoeff(p2);
    190   int co=0, ct = ksCheckCoeff(&lc1, &lc2); // gcd and zero divisors
     190  int co=0, ct = ksCheckCoeff(&lc1, &lc2, currRing->cf); // gcd and zero divisors
    191191
    192192  int l1=0, l2=0;
     
    371371  if (is_Ring)
    372372  {
    373     ksCheckCoeff(&lc1, &lc2); // gcd and zero divisors
     373    ksCheckCoeff(&lc1, &lc2, currRing->cf); // gcd and zero divisors
    374374    if (a1 != NULL) t2 = nMult(pGetCoeff(a1),lc2);
    375375    if (a2 != NULL) t1 = nMult(pGetCoeff(a2),lc1);
Note: See TracChangeset for help on using the changeset viewer.