Changeset 39e423 in git


Ignore:
Timestamp:
May 1, 2009, 5:09:32 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
Children:
e3b5ed00f856ec2d7eda1f54c39e55fce4aa7930
Parents:
0661d420fbd0c4909468e67e60c2b21895686e9d
Message:
*hannes: qring=


git-svn-id: file:///usr/local/Singular/svn/trunk@11763 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipassign.cc

    r0661d42 r39e423  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipassign.cc,v 1.103 2009-03-19 11:04:56 Singular Exp $ */
     4/* $Id: ipassign.cc,v 1.104 2009-05-01 15:09:32 Singular Exp $ */
    55
    66/*
     
    551551
    552552  ring qr=(ring)res->Data(); // the declaration allocated space
     553  omFreeBin((ADDRESS)qr, ip_sring_bin);
    553554  ring qrr=rCopy(currRing);
    554555                 // we have to fill it, but the copy also allocates space
    555   memcpy4(qr,qrr,sizeof(ip_sring));
    556   omFreeBin((ADDRESS)qrr, ip_sring_bin);
     556  idhdl h=(idhdl)res->data; // we have res->rtyp==IDHDL
     557  IDRING(h)=qrr;
     558  qr=qrr;
    557559
    558560#ifdef HAVE_PLURAL
     
    564566#endif
    565567
    566   // delete the qr copy of quotient ideal!!!
    567   if (qr->qideal!=NULL) idDelete(&qr->qideal);
    568568
    569569  ideal id=(ideal)a->CopyD(IDEAL_CMD);
    570570
    571   if ((idElem(id)>1) || rIsSCA(currRing) || (currRing->qideal!=NULL)) 
     571  if ((idElem(id)>1) || rIsSCA(currRing) || (currRing->qideal!=NULL))
    572572    assumeStdFlag(a);
    573573
     
    578578    idDelete(&id);
    579579    id=tmp;
    580   }
    581   qr->qideal = id;
     580     // delete the qr copy of quotient ideal!!!
     581    idDelete(&qr->qideal);
     582  }
     583  qrr->qideal = id;
    582584
    583585  // qr is a copy of currRing with the new qideal!
     
    592594    if( nc_SetupQuotient(qr, currRing) )
    593595    {
    594 //      WarnS("error in nc_SetupQuotient"); 
     596//      WarnS("error in nc_SetupQuotient");
    595597    }
    596598  }
Note: See TracChangeset for help on using the changeset viewer.