Changeset c8e7d63 in git


Ignore:
Timestamp:
Feb 25, 2014, 9:57:35 AM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4cda398594e14a9c3953996550f1d55f247252fc8d25019f8182d6d3e441f78f8146914b302f82f3
Parents:
42d0cbc2182023ac298b5fcbc4fefb38d67e2aac
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2014-02-25 09:57:35+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2014-02-25 09:59:37+01:00
Message:
fix: setting minpoly twice with invalid minpolys (tr.579)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipassign.cc

    r42d0cb rc8e7d63  
    248248  }
    249249
    250   assume( currRing->cf->extRing->qideal == NULL );
    251 
    252250  AlgExtInfo A;
    253251
    254252  A.r = rCopy(currRing->cf->extRing); // Copy  ground field!
     253  // if minpoly was already set:
     254  if( currRing->cf->extRing->qideal != NULL ) id_Delete(&(A.r->qideal),A.r);
    255255  ideal q = idInit(1,1);
     256  if ((p==NULL) ||(DEN((fraction)(p)) != NULL) ||(NUM((fraction)p)==NULL))
     257  {
     258    Werror("Could not construct the alg. extension: minpoly==0");
     259    // cleanup A: TODO
     260    rDelete( A.r );
     261    return TRUE;
     262  }
    256263
    257264  assume( DEN((fraction)(p)) == NULL ); // minpoly must be a fraction with poly numerator...!!
  • libpolys/polys/ext_fields/algext.cc

    r42d0cb rc8e7d63  
    653653  poly aAsPoly;
    654654  const char * result = p_Read(s, aAsPoly, naRing);
    655   definiteReduce(aAsPoly, naMinpoly, cf);
     655  if (aAsPoly!=NULL) definiteReduce(aAsPoly, naMinpoly, cf);
    656656  *a = (number)aAsPoly;
    657657  return result;
Note: See TracChangeset for help on using the changeset viewer.