Changeset ddebd7 in git


Ignore:
Timestamp:
Apr 19, 2021, 7:31:08 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
30e184b9f651e8205529c6336cd2f7c39e603699
Parents:
3cda50c00a849455efa2502e56596955491a353a
Message:
fix: handle currRing==tailRing in splitAt..
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kLiftstd.cc

    r3cda50 rddebd7  
    4040{
    4141  poly p;
    42   if (h->t_p==NULL) h->GetLmTailRing();
    43   p=h->t_p;
    44   if ((p==NULL) ||(p->next==NULL)) return NULL;
     42  if (h->t_p==NULL)
     43  {
     44    if (currRing!=strat->tailRing)
     45    {
     46      h->t_p=k_LmInit_currRing_2_tailRing(h->p, strat->tailRing);
     47      p=h->t_p;
     48    }
     49    else
     50      p=h->p;
     51  }
     52  else
     53    p=h->t_p;
     54  if (p->next==NULL) return NULL;
    4555  int ll=1;
    4656  const ring tailRing=strat->tailRing;
     
    6878  else
    6979  {
    70     if (h->t_p!=NULL) h->GetLmTailRing();
    71     p=h->t_p;
     80    if (h->t_p==NULL)
     81    {
     82      if (currRing!=strat->tailRing)
     83      {
     84        h->t_p=k_LmInit_currRing_2_tailRing(h->p, strat->tailRing);
     85        p=h->t_p;
     86      }
     87      else
     88        p=h->p;
     89    }
     90    else
     91      p=h->t_p;
    7292  }
    7393  const ring tailRing=strat->tailRing;
Note: See TracChangeset for help on using the changeset viewer.