Changeset f3a5b8 in git


Ignore:
Timestamp:
Sep 10, 2013, 4:05:40 PM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
918ca09282483016057240878bd4a20cd2d7305f
Parents:
c149e345cb58e789ed28fe569ddaee8906cdbdc7
Message:
fix: delete DEN if it is 1
File:
1 edited

Legend:

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

    rc149e3 rf3a5b8  
    14261426      NUM(f) = p_Neg(NUM(f), ntRing);
    14271427      DEN(f) = p_Neg(DEN(f), ntRing);
     1428      if (p_IsConstant(DEN(f), ntRing) &&
     1429        n_IsOne(p_GetCoeff(DEN(f), ntRing), ntCoeffs))
     1430      {
     1431        /* DEN(f) = 1 needs to be represented by NULL! */
     1432        p_Delete(&DEN(f), ntRing);
     1433        DEN (f) = NULL;
     1434      }
    14281435    }
    14291436#endif /* HAVE_FACTORY */
Note: See TracChangeset for help on using the changeset viewer.