Changeset 121fd9 in git for libpolys/coeffs/gnumpc.cc


Ignore:
Timestamp:
May 11, 2011, 1:29:30 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
ca1eb1a729253498d9506a95c9dc7fbaa646acc6
Parents:
50612e2a61efff5f199e310834c46d4452b2cf8d
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-05-11 13:29:30+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:03+01:00
Message:
add: ndCoeffsIsEqual: generic case,parameter unsed
fix: some "unused parameter" warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/gnumpc.cc

    r50612e2 r121fd9  
    4242{
    4343  assume( getCoeffType(r) == ID );
     44  assume(i==1);
    4445
    4546  gmp_complex* n= new gmp_complex( (long)0, (long)1 );
     
    371372    omFree( (void *)out );
    372373  }
    373 }
    374 
    375 
    376 
    377 /// test, whether r is an instance of nInitCoeffs(n, parameter)
    378 static BOOLEAN ngcCoeffsEqual(const coeffs r, n_coeffType n, void*)
    379 {
    380   assume( getCoeffType(r) == ID );
    381  
    382   return (n == ID);
    383374}
    384375
     
    419410#endif
    420411
    421   n->nCoeffIsEqual = ngcCoeffsEqual;
     412  n->nCoeffIsEqual = ndCoeffIsEqual;
    422413
    423414
     
    489480/// TODO: Any variables?
    490481  if( p == NULL )
    491     n->complex_parameter = "i"; //??
     482    n->complex_parameter = omStrDup((char*)"i");
    492483  else
    493484    n->complex_parameter = omStrDup( (char*) p );
Note: See TracChangeset for help on using the changeset viewer.