Changeset 1112b76 in git for coeffs/test.cc


Ignore:
Timestamp:
Jun 22, 2010, 12:41:01 PM (14 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d61b83a9e2debd2805137931b5341399516d2a63
Parents:
d4531110717a559c771df1b82982574879ac0fc5
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2010-06-22 12:41:01+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:55:16+01:00
Message:
Bug in rmodulon.cc: nrnSetExp expects some previous initialization but ignores the given parameter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • coeffs/test.cc

    rd45311 r1112b76  
    22
    33#include <auxiliary.h>
     4
    45#include <coeffs.h>
    56#include <numbers.h>
     
    3940
    4041
    41 bool Test(const n_coeffType type)
     42bool Test(const n_coeffType type, void* p = NULL)
    4243{
    4344
     
    4546                "]: -----------------------" << endl;
    4647
    47   const coeffs r = nInitChar( type, NULL );
     48  const coeffs r = nInitChar( type, p );
    4849
    4950  assume( r != NULL );
     
    143144#ifdef HAVE_RINGS
    144145  type = nRegister( n_Z2m, nr2mInitChar); assume( type == n_Z2m );
    145   if( Test(type) )
     146  if( Test(type, (void*) 2) )
    146147    c ++;
    147148#endif
     
    150151#ifdef HAVE_RINGS
    151152  type = nRegister( n_Zn, nrnInitChar); assume( type == n_Zn );
    152   if( Test(type) )
     153  if( Test(type, (void*) 3) )
    153154    c ++;
    154155/* BUG:
     
    158159#0  0x00007ffff7b91f1b in __gmpz_set () from /usr/lib/libgmp.so.10
    159160#1  0x00000000004177a5 in nrnSetExp (m=0, r=0x7ffff7f44ae8) at rmodulon.cc:549
     161
    160162#2  0x0000000000417814 in nrnInitExp (m=0, r=0x7ffff7f44ae8) at rmodulon.cc:556
     163
    161164#3  0x0000000000416122 in nrnInitChar (r=0x7ffff7f44ae8) at rmodulon.cc:34
    162165#4  0x0000000000413278 in nInitChar (t=n_Zn, parameter=0x0) at numbers.cc:146
Note: See TracChangeset for help on using the changeset viewer.