Changeset 79e495 in git


Ignore:
Timestamp:
Sep 28, 2022, 10:40:19 AM (19 months ago)
Author:
Kwankyu Lee <ekwankyu@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
787035145f531ce249dde09cbb3656225517b252
Parents:
5bec8f88c9ee2573d328cf7c3aff2bcb301d2395
git-author:
Kwankyu Lee <ekwankyu@gmail.com>2022-09-28 17:40:19+09:00
git-committer:
Kwankyu Lee <ekwankyu@gmail.com>2022-09-28 21:37:36+09:00
Message:
Fix for non-field base ring
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/maps/fast_maps.cc

    r5bec8f r79e495  
    460460  poly p=NULL;
    461461  poly pp;
    462   BOOLEAN is_const=TRUE; // to check for zero-div in p_Mult_q
     462  BOOLEAN is_const=TRUE; // for constant src
    463463  for(i=1;i<=src_r->N;i++)
    464464  {
     
    466466    if (e>0)
    467467    {
    468       is_const=FALSE;
    469468      pp=dest_id[i-1];
    470469      if (pp==NULL)
     
    473472        return NULL;
    474473      }
    475       if (/*(*/ p==NULL /*)*/) /* && (e>0)*/
    476       {
     474      if (p==NULL)
     475      {
     476        if (!is_const) // possible only when the coefficient ring is not a field
     477        {
     478          return NULL;
     479        }
    477480        p=p_Copy(pp /*dest_id[i-1]*/,dest_r);
    478481        e--;
     
    483486        e--;
    484487      }
     488      is_const=FALSE;
    485489    }
    486490  }
Note: See TracChangeset for help on using the changeset viewer.