File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -338,14 +338,14 @@ int main( int, char *argv[] )
338338#ifdef HAVE_RINGS
339339 type = n_Zn;
340340
341- ZnmInfo * Znmparam= new ZnmInfo ;
342- Znmparam-> base = (mpz_ptr) omAlloc (sizeof (mpz_t ));
343- mpz_init_set_ui (Znmparam-> base , 3 );
344- Znmparam-> exp = 1 ;
341+ ZnmInfo Znmparam;
342+ Znmparam. base = (mpz_ptr) omAlloc (sizeof (mpz_t ));
343+ mpz_init_set_ui (Znmparam. base , 3 );
344+ Znmparam. exp = 1 ;
345345
346- if ( Test (type, (void *) Znmparam) )
346+ if ( Test (type, (void *) & Znmparam) )
347347 c ++;
348- delete Znmparam;
348+
349349#endif
350350
351351 type = n_long_C;
Original file line number Diff line number Diff line change @@ -447,13 +447,12 @@ class CoeffsTestSuite : public CxxTest::TestSuite
447447#ifdef HAVE_RINGS
448448 n_coeffType type = n_Zn;
449449
450- ZnmInfo * Znmparam= new ZnmInfo ;
451- Znmparam-> base = (mpz_ptr) omAlloc (sizeof (mpz_t ));
452- mpz_init_set_ui (Znmparam-> base , 3 );
453- Znmparam-> exp = 1 ;
450+ ZnmInfo Znmparam;
451+ Znmparam. base = (mpz_ptr) omAlloc (sizeof (mpz_t ));
452+ mpz_init_set_ui (Znmparam. base , 3 );
453+ Znmparam. exp = 1 ;
454454
455- TS_ASSERT ( Test (type, (void *) Znmparam) );
456- delete Znmparam;
455+ TS_ASSERT ( Test (type, (void *) &Znmparam) );
457456#endif
458457 }
459458
You can’t perform that action at this time.
0 commit comments