Changeset f3f526 in git


Ignore:
Timestamp:
Feb 28, 2020, 3:04:30 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c7af8613769b29c741d6c338945669719f1fc4f8')
Children:
64b2fd4d4be8a68ebf8729a7eb2b4780cbd55223
Parents:
755296268cecf52058c0d823adbeb25b4c898766
Message:
compiler warning (undef lc)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kutil.cc

    r755296 rf3f526  
    333333void cancelunit (LObject* L,BOOLEAN inNF)
    334334{
    335   number lc;
    336 
    337335  if(rHasGlobalOrdering (currRing)) return;
    338336  if(TEST_OPT_CANCELUNIT) return;
     
    342340  if(p_GetComp(p, r) != 0 && !p_OneComp(p, r)) return;
    343341
     342  number lc=NULL; /*dummy, is always set if rField_is_Ring(r) */
    344343  if (rField_is_Ring(r) /*&& (rHasLocalOrMixedOrdering(r))*/)
    345344    lc = pGetCoeff(p);
    346 #ifdef HAVE_RINGS
     345
    347346  // Leading coef have to be a unit
    348347  // example 2x+4x2 should be simplified to 2x*(1+2x)
    349348  // and 2 is not a unit in Z
    350349  //if ( !(n_IsUnit(pGetCoeff(p), r->cf)) ) return;
    351 #endif
    352 
    353350
    354351//    for(i=r->N;i>0;i--)
Note: See TracChangeset for help on using the changeset viewer.