Changeset 2e2c67 in git


Ignore:
Timestamp:
Feb 22, 2013, 10:03:54 AM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'cbf866d4f8c3861325311c042cb2033c053453b2')
Children:
603ac7ad326e99497d87fc21e0568f6fb89ad139
Parents:
69658e5e110d586876c43dd51520b4365cec0c52
Message:
fix: p_DegW(0) is now -LONG_MAX (interpeter problem)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/p_polys.cc

    r69658e r2e2c67  
    694694  assume( p_Test(p, R) );
    695695  assume( w != NULL );
    696    
    697   if( p == NULL ) // TODO: ???
    698      return -1;
    699   long r=~0L;
    700   loop
    701   {
    702     long t = totaldegreeWecart_IV(p, R, w);
    703     if (t > r) r = t;
     696  long r=-LONG_MAX;
     697
     698  while (p!=NULL)
     699  {
     700    long t=totaldegreeWecart_IV(p,R,w);
     701    if (t>r) r=t;
    704702    pIter(p);
    705     if (p==NULL) break;
    706703  }
    707704  return r;
Note: See TracChangeset for help on using the changeset viewer.