Changeset fb0a699 in git


Ignore:
Timestamp:
Mar 2, 2011, 6:49:02 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'fc741b6502fd8a97288eaa3eba6e5220f3c3df87')
Children:
16f8f1227d3e09337313bb55007fdaaf58f2d048
Parents:
32bd40b31e0076ebec70b5bdec0b6cbb3b63df1e
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-03-02 18:49:02+01:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:00:09+01:00
Message:
FIX: fixed a bug, which occured during the last rebase (2.03.2011)
Location:
libpolys/coeffs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/numbers.cc

    r32bd40 rfb0a699  
    187187  }
    188188  #endif
    189     cf_root=n;
    190189   
    191190    BOOLEAN nOK=TRUE;
     
    196195       Werror("coeff init missing for %d",(int)t);
    197196    if (nOK)
    198       {
    199         omFreeSize(n,sizeof(*n));
    200         return NULL;
    201       }
     197    {
     198      omFreeSize(n,sizeof(*n));
     199      return NULL;
     200    }
    202201    cf_root=n;
    203202    // post init settings:
  • libpolys/coeffs/test.cc

    r32bd40 rfb0a699  
    163163bool Test(const n_coeffType type, void* p = NULL)
    164164{
    165   cout  << endl << "----------------------- Testing coeffs: [" << type <<
     165  cout  << endl << "----------------------- Testing coeffs: [" << type << ", " << p <<
    166166                "]: -----------------------" << endl;
    167167
    168168  const coeffs r = nInitChar( type, p );
    169169
    170   if( r == NULL ) { cout << "error"; return false; };
    171 
     170  if( r == NULL ) { cout << "Test: could not get the specified coeff. domain for type: " << type << " and the parameter: " << p << endl; return false; };
     171
     172  assume( r != NULL );
    172173  nSetChar( r );
    173174  assume( getCoeffType(r) == type );
     
    287288    c ++;
    288289#endif
    289 
     290   GFInfo param;
    290291   type = nRegister( n_GF, nfInitChar); assume( type == n_GF );
    291292
    292    GFInfo param;
    293293
    294294   param.GFChar= 5;
     
    298298   if( Test(type, (void*) &param) )
    299299     c ++;
    300  
     300
     301
    301302   param.GFChar= 5;
    302303   param.GFDegree= 2;
     
    306307     c ++;
    307308
     309
    308310  TODO(Somebody, floating arithmetics via GMP rely on two global variables (see setGMPFloatDigits). Please fix it!);
    309311
Note: See TracChangeset for help on using the changeset viewer.