Ignore:
Timestamp:
Mar 23, 2021, 1:47:28 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
83b708e1e62df44f73360736db039f50d5fb9b14
Parents:
fe19cbb0dced364dd1422423b717f42df4c92424
Message:
rIncRefCnt, rDecRefCnt
File:
1 edited

Legend:

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

    rfe19cbb r1f91b9  
    13231323void naKillChar(coeffs cf)
    13241324{
    1325    if ((--cf->extRing->ref) == 0)
    1326      rDelete(cf->extRing);
     1325  rDecRefCnt(cf->extRing);
     1326  if(cf->extRing->ref<0)
     1327    rDelete(cf->extRing);
    13271328}
    13281329
     
    13871388  assume(getCoeffType(cf) == n_algExt);                     // coeff type;
    13881389
    1389   e->r->ref ++; // increase the ref.counter for the ground poly. ring!
     1390  rIncRefCnt(e->r); // increase the ref.counter for the ground poly. ring!
    13901391  const ring R = e->r; // no copy!
    13911392  cf->extRing  = R;
     
    16361637  assume( cf != NULL );
    16371638
    1638   e->r->ref ++; // increase the ref.counter for the ground poly. ring!
     1639  rIncRefCnt(e->r); // increase the ref.counter for the ground poly. ring!
    16391640  const ring R = e->r; // no copy!
    16401641  cf->extRing  = R;
Note: See TracChangeset for help on using the changeset viewer.