Changeset ac8e1a in git


Ignore:
Timestamp:
Jun 8, 2011, 3:20:17 PM (12 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
Children:
3645fcced1ffa30007ffe55cd16d183a0a6256fe
Parents:
639652f186091509059ccc76f18852db93c1b988
Message:
compiler warnings


git-svn-id: file:///usr/local/Singular/svn/trunk@14267 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
factory
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • factory/facFqBivar.cc

    r639652f rac8e1a  
    267267  DEBOUTLN (cerr, "LC (F, 1)*prodMod (factors, M) == F " <<
    268268            (LC (F, 1)*prodMod (factors, M) == F));
    269   int degMipoBeta;
    270   if (!k && beta.level() == 1)
    271     degMipoBeta= 1;
    272   else if (!k && beta.level() != 1)
     269  int degMipoBeta= 1;
     270  if (!k && beta.level() != 1)
    273271    degMipoBeta= degree (getMipo (beta));
    274272
     
    703701  int d= degree (F) + degree (LCBuf);
    704702  CFList source, dest;
    705   int degMipoBeta;
    706   if (!k && beta.level() == 1)
    707     degMipoBeta= 1;
    708   else if (!k && beta.level() != 1)
     703  int degMipoBeta= 1;
     704  if (!k && beta.level() != 1)
    709705    degMipoBeta= degree (getMipo (beta));
    710706  for (CFListIterator i= factors; i.hasItem(); i++)
     
    46044600    gamma= rootOf (mipo);
    46054601    Variable V_buf;
    4606     bool fail;
     4602    bool fail= false;
    46074603    primElemAlpha= primitiveElement (alpha, V_buf, fail);
    46084604    imPrimElemAlpha= map (primElemAlpha, alpha, bufEvaluation, gamma);
     
    53775373  A= A (y + evaluation, y);
    53785374
    5379   int liftBound= liftBound= degree (A, y) + 1 + degree (LC(A, x));
     5375  int liftBound= degree (A, y) + 1 + degree (LC(A, x));
    53805376
    53815377  int boundsLength;
     
    53945390  DEBOUTLN (cerr, "uniFactors= " << uniFactors);
    53955391
    5396   if (GF && !extension || (GF && extension && k != 1))
     5392  if ((GF && !extension) || (GF && extension && k != 1))
    53975393  {
    53985394    bool earlySuccess= false;
  • factory/facFqFactorize.cc

    r639652f rac8e1a  
    618618    return CFList();
    619619
    620   int degMipoBeta;
    621   if (!k && beta.level() == 1)
    622     degMipoBeta= 1;
    623   else if (!k && beta.level() != 1)
     620  int degMipoBeta= 1;
     621  if (!k && beta.level() != 1)
    624622    degMipoBeta= degree (getMipo (beta));
    625623
     
    915913  int e= 0;
    916914  int nBuf;
    917   int degMipoBeta;
    918   if (!k && beta.level() == 1)
    919     degMipoBeta= 1;
    920   else if (!k && beta.level() != 1)
     915  int degMipoBeta= 1;
     916  if (!k && beta.level() != 1)
    921917    degMipoBeta= degree (getMipo (beta));
    922918
     
    10651061  CFList source, dest;
    10661062
    1067   int degMipoBeta;
    1068   if (!k && beta.level() == 1)
    1069     degMipoBeta= 1;
    1070   else if (!k && beta.level() != 1)
     1063  int degMipoBeta= 1;
     1064  if (!k && beta.level() != 1)
    10711065    degMipoBeta= degree (getMipo (beta));
    10721066
  • factory/facFqSquarefree.cc

    r639652f rac8e1a  
    212212  CanonicalForm result;
    213213  int i= 1;
    214   bool GF= (CFFactory::gettype() == GaloisFieldDomain);
    215214  bool allZero= true;
    216215  for (; i <= A.level(); i++)
  • factory/gfops.cc

    r639652f rac8e1a  
    147147            bufptr += digs;
    148148            if ( gf_table[i] == gf_q )
     149            {
    149150                if ( i == gf_q1 )
    150151                    gf_m1 = 0;
    151152                else
    152153                    gf_m1 = i;
     154            }
    153155            i++; k++;
    154156        }
  • factory/int_poly.cc

    r639652f rac8e1a  
    353353        resultFirst = reduceTermList( resultFirst, (getInternalMipo( var ))->firstTerm, resultLast );
    354354        if ( resultFirst == 0 )
     355        {
    355356            if ( getRefCount() <= 1 )
    356357            {
     
    363364                return CFFactory::basic(0);
    364365            }
     366        }
    365367        else  if ( resultFirst->exp == 0 )
     368        {
    366369            if ( getRefCount() <= 1 )
    367370            {
     
    378381                return res;
    379382            }
     383        }
    380384    }
    381385    if ( getRefCount() <= 1 )
     
    730734            // test on inequaltiy in general is cheaper
    731735            if ( (cursor1->exp != cursor2->exp) || (cursor1->coeff != cursor2->coeff) )
     736            {
    732737                if ( cursor1->exp > cursor2->exp )
    733738                    return 1;
     
    738743                else
    739744                    return -1;
     745             }
    740746        // check trailing terms
    741747        if ( cursor1 == cursor2 )
     
    965971    }
    966972    if ( invert )
     973    {
    967974        if ( getRefCount() <= 1 )
    968975        {
     
    975982            return CFFactory::basic( 0 );
    976983        }
     984    }
    977985    if ( c.isOne() )
    978986        return this;
     
    10391047    }
    10401048    if ( invert )
     1049    {
    10411050        if ( getRefCount() <= 1 )
    10421051        {
     
    10491058            return CFFactory::basic( 0 );
    10501059        }
     1060    }
    10511061    if ( c.isOne() )
    10521062        return this;
  • factory/int_rat.cc

    r639652f rac8e1a  
    557557        int cc = imm2int( c );
    558558        if ( cc == 0 )
     559        {
    559560            if ( negate )
    560561            {
     
    575576            else
    576577                return this;
     578        }
    577579        mpz_init( &n );
    578580        if ( cc < 0 )
  • factory/sm_sparsemod.cc

    r639652f rac8e1a  
    5353    return gcd( icontent( u ), v);
    5454  else if ( u.isUnivariate() )
     55  {
    5556    if ( v.isUnivariate() )
    5657      return gcd( u, v );
    5758    else
    5859      return gcd( v, u );
     60  }
    5961
    6062  //   u und v Polynome in levU - Variablen x1, ..., xlevU
Note: See TracChangeset for help on using the changeset viewer.