Changeset 8b46459 in git
- Timestamp:
- Nov 25, 2011, 1:07:18 AM (12 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 47b5d7aa0b4641c40dce245c8cdc8b3ecd0c8cfb
- Parents:
- a522916a7e6a9455b8b3b069cf64a8a507a5247f
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-11-25 01:07:18+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-11-25 14:03:06+01:00
- Location:
- libpolys
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/longrat.cc
ra52291 r8b46459 297 297 if ( n->s == 3 ) 298 298 { 299 MP_INTdummy;300 mpz_init_set( &dummy,n->z );299 mpz_t dummy; 300 mpz_init_set( dummy,n->z ); 301 301 term = make_cf( dummy ); 302 302 } … … 304 304 { 305 305 // assume s==0 or s==1 306 MP_INTnum, den;306 mpz_t num, den; 307 307 On(SW_RATIONAL); 308 mpz_init_set( &num, n->z );309 mpz_init_set( &den, n->n );308 mpz_init_set( num, n->z ); 309 mpz_init_set( den, n->n ); 310 310 term = make_cf( num, den, ( n->s != 1 )); 311 311 } -
libpolys/polys/clapconv.cc
ra52291 r8b46459 27 27 #define TRANSEXT_PRIVATES 28 28 #include <polys/ext_fields/transext.h> 29 30 typedef __mpz_struct lint;31 29 32 30 void out_cf(char *s1,const CanonicalForm &f,char *s2); … … 220 218 if ( p_GetCoeff( p, r->cf->extRing )->s == 3 ) 221 219 { 222 lint dummy;223 mpz_init_set( &dummy, (p_GetCoeff( p,r->cf->extRing )->z) );220 mpz_t dummy; 221 mpz_init_set( dummy, (p_GetCoeff( p,r->cf->extRing )->z) ); 224 222 term = make_cf( dummy ); 225 223 } … … 227 225 { 228 226 // assume s==0 or s==1 229 lint num, den;227 mpz_t num, den; 230 228 On(SW_RATIONAL); 231 mpz_init_set( &num, (p_GetCoeff( p, r->cf->extRing )->z) );232 mpz_init_set( &den, (p_GetCoeff( p, r->cf->extRing )->n) );229 mpz_init_set( num, (p_GetCoeff( p, r->cf->extRing )->z) ); 230 mpz_init_set( den, (p_GetCoeff( p, r->cf->extRing )->n) ); 233 231 term = make_cf( num, den, ( p_GetCoeff( p, r->cf->extRing )->s != 1 )); 234 232 }
Note: See TracChangeset
for help on using the changeset viewer.