Changeset bed38b in git


Ignore:
Timestamp:
Aug 27, 2012, 11:46:16 AM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '2234726c50d679d6664181a5c72f75a6fd64a787')
Children:
e3cb321a536f5d1fea376ee2b01122921297faa8
Parents:
935632e9d66d12abe5da2483364feb9f4f1266ef
git-author:
Martin Lee <martinlee84@web.de>2012-08-27 11:46:16+02:00
git-committer:
Martin Lee <martinlee84@web.de>2012-09-05 15:00:01+02:00
Message:
fix: possible infinite loop
Location:
factory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • factory/facFactorize.cc

    r935632 rbed38b  
    11751175              for (int i=1; i <= tmp.level(); i++)
    11761176              {
    1177                 if (degree (tmp, i) > 0)
     1177                if (degree(tmp,i) > 0 &&
     1178                    (degree(iter2.getItem(),i) > degree (tmp,i)))
    11781179                  iter2.getItem() /= power (Variable (i), degree (tmp,i));
    11791180              }
     
    13401341      for (int i=1; i <= tmp.level(); i++)
    13411342      {
    1342         if (degree (tmp, i) > 0)
     1343        if (degree(tmp,i) > 0 && (degree(iter2.getItem(),i) > degree (tmp,i)))
    13431344          iter2.getItem() /= power (Variable (i), degree (tmp,i));
    13441345      }
  • factory/facFqFactorize.cc

    r935632 rbed38b  
    28362836              for (int i=1; i <= tmp.level(); i++)
    28372837              {
    2838                 if (degree (tmp, i) > 0)
     2838                if (degree(tmp,i) > 0 &&
     2839                    (degree(iter2.getItem(),i) > degree (tmp,i)))
    28392840                  iter2.getItem() /= power (Variable (i), degree (tmp,i));
    28402841              }
     
    30023003      for (int i=1; i <= tmp.level(); i++)
    30033004      {
    3004         if (degree (tmp, i) > 0)
     3005        if (degree (tmp,i) > 0 && (degree (iter2.getItem(),i) > degree (tmp,i)))
    30053006          iter2.getItem() /= power (Variable (i), degree (tmp,i));
    30063007      }
Note: See TracChangeset for help on using the changeset viewer.