Changeset a0707f8 in git for libpolys/coeffs/rintegers.cc
- Timestamp:
- Mar 13, 2017, 2:19:10 PM (7 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38077648e7239f98078663eb941c3c979511150a')
- Children:
- 17c3150d26605e770ae78cd36b6201409f4f1ab3
- Parents:
- a5b3bfc89e0d6875d26d979d8393b09e12c97621
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/rintegers.cc
ra5b3bf ra0707f8 333 333 mpz_ptr erg = (mpz_ptr) omAllocBin(gmp_nrz_bin); 334 334 mpz_init(erg); 335 nlGMP(from, (number)erg, src); // FIXME? TODO? // extern void nlGMP(number &i, number n, const coeffs r); // to be replaced with n_MPZ(erg, from, src); // ?335 nlGMP(from, erg, src); // FIXME? TODO? // extern void nlGMP(number &i, number n, const coeffs r); // to be replaced with n_MPZ(erg, from, src); // ? 336 336 return (number) erg; 337 337 } … … 481 481 { 482 482 long ch = r->cfInt(c, r); 483 mpz_ptr dummy; 484 dummy = (mpz_ptr) omAlloc(sizeof(mpz_t)); 483 mpz_t dummy; 485 484 mpz_init_set_ui(dummy, ch); 486 485 ZnmInfo info; … … 488 487 info.exp = (unsigned long) 1; 489 488 coeffs rr = nInitChar(n_Zn, (void*)&info); 489 mpz_clear(dummy); 490 490 return(rr); 491 491 } … … 1785 1785 static coeffs nrzQuot1(number c, const coeffs r) 1786 1786 { 1787 mpz_ptr dummy; 1788 dummy = (mpz_ptr) omAlloc(sizeof(mpz_t)); 1787 mpz_t dummy; 1789 1788 if(n_Z_IS_SMALL(c)) 1790 1789 { … … 1800 1799 info.exp = (unsigned long) 1; 1801 1800 coeffs rr = nInitChar(n_Zn, (void*)&info); 1801 mpz_clear(dummy); 1802 1802 return(rr); 1803 1803 }
Note: See TracChangeset
for help on using the changeset viewer.