Changeset a2e447 in git
- Timestamp:
- Dec 16, 2014, 2:22:02 PM (9 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 75f460d8b1424a14103e3ee48d499b71e1cb46ee
- Parents:
- 2fe92a21aa722bbb031cbd6accd0689cee649df8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipshell.cc
r2fe92a2 ra2e447 2091 2091 if ((LL->nr >= 0) && LL->m[0].rtyp == BIGINT_CMD) 2092 2092 { 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); 2095 2096 } 2096 2097 else if (LL->nr >= 0 && LL->m[0].rtyp == INT_CMD) … … 5267 5268 else if ((pn->name != NULL) && (strcmp(pn->name, "integer") == 0)) 5268 5269 { 5269 // TODO: change to use coeffs_BIGINT!? 5270 // TODO: change to use coeffs_BIGINT!? 5270 5271 modBase = (mpz_ptr) omAlloc(sizeof(mpz_t)); 5271 5272 mpz_init_set_si(modBase, 0); … … 5317 5318 //ringtype = 1; // Use Z/2^ch 5318 5319 cf=nInitChar(n_Z2m,(void*)(long)modExponent); 5320 mpz_clear(modBase); 5319 5321 omFreeSize (modBase, sizeof (mpz_t)); 5320 5322 }
Note: See TracChangeset
for help on using the changeset viewer.