Changeset a2e447 in git


Ignore:
Timestamp:
Dec 16, 2014, 2:22:02 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
75f460d8b1424a14103e3ee48d499b71e1cb46ee
Parents:
2fe92a21aa722bbb031cbd6accd0689cee649df8
Message:
remark: CopyD on list elements
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r2fe92a2 ra2e447  
    20912091    if ((LL->nr >= 0) && LL->m[0].rtyp == BIGINT_CMD)
    20922092    {
    2093       number tmp= (number) LL->m[0].data; // .CopyD()? see below
    2094       n_MPZ (modBase, tmp, coeffs_BIGINT); // FIXME: deletes tmp: previous CopyD() should NOT be necessary!
     2093      number tmp= (number) LL->m[0].data; // never use CopyD() on list elements
     2094                                    // assume that tmp is integer, not rational
     2095      n_MPZ (modBase, tmp, coeffs_BIGINT);
    20952096    }
    20962097    else if (LL->nr >= 0 && LL->m[0].rtyp == INT_CMD)
     
    52675268  else if ((pn->name != NULL) && (strcmp(pn->name, "integer") == 0))
    52685269  {
    5269     // TODO: change to use coeffs_BIGINT!? 
     5270    // TODO: change to use coeffs_BIGINT!?
    52705271    modBase = (mpz_ptr) omAlloc(sizeof(mpz_t));
    52715272    mpz_init_set_si(modBase, 0);
     
    53175318        //ringtype = 1;       // Use Z/2^ch
    53185319        cf=nInitChar(n_Z2m,(void*)(long)modExponent);
     5320        mpz_clear(modBase);
    53195321        omFreeSize (modBase, sizeof (mpz_t));
    53205322      }
Note: See TracChangeset for help on using the changeset viewer.