Ignore:
Timestamp:
Sep 27, 2013, 1:25:58 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
62393da950b3f0e2f7ae740773cd556f16a20bda
Parents:
12d61707b29797f7bf3e42e5b9f0a01e937da42be3572aeabbaf031b22dbbac237937700676a8248
Message:
Merge pull request #383 from mmklee/ff_transext

Ff transext
File:
1 edited

Legend:

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

    r12d617 r23e8e2  
    13871387       DEN(f), or both, due to previous arithmetics. The next call will
    13881388       remove those nested fractions, in case there are any. */
    1389     if (nCoeff_is_Zp(ntCoeffs) && p_IsConstant (DEN (f), ntRing))
     1389    if (nCoeff_is_Zp(ntCoeffs))
    13901390    {
    13911391      NUM (f) = p_Div_nn (NUM (f), p_GetCoeff (DEN(f),ntRing), ntRing);
    1392       p_Delete(&DEN (f), ntRing);
    1393       DEN (f) = NULL;
    1394       COM (f) = 0;
     1392      if (p_IsConstant (DEN (f), ntRing))
     1393      {
     1394        p_Delete(&DEN (f), ntRing);
     1395        DEN (f) = NULL;
     1396      }
     1397      else
     1398      {
     1399        p_Norm (DEN (f),ntRing);
     1400      }
    13951401    } else if (nCoeff_is_Q(ntCoeffs)) handleNestedFractionsOverQ(f, cf);
    13961402  }
     
    14071413    else
    14081414    {
    1409       if (nCoeff_is_Zp(ntCoeffs) && p_IsConstant (DEN (f), ntRing))
     1415      if (nCoeff_is_Zp(ntCoeffs))
    14101416      {
    14111417        NUM (f) = p_Div_nn (NUM (f), p_GetCoeff (DEN(f),ntRing), ntRing);
    1412         p_Delete(&DEN (f), ntRing);
    1413         DEN (f) = NULL;
    1414         COM (f) = 0;
     1418        if (p_IsConstant (DEN (f), ntRing))
     1419        {
     1420          p_Delete(&DEN (f), ntRing);
     1421          DEN (f) = NULL;
     1422        }
     1423        else
     1424        {
     1425          p_Norm (DEN (f),ntRing);
     1426        }
    14151427      }
    14161428    }
Note: See TracChangeset for help on using the changeset viewer.