Skip to content
Snippets Groups Projects
Commit 112a5ea3 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix compile with gcc 4.7.2 linux

parent 0c448af7
No related branches found
No related tags found
No related merge requests found
......@@ -1194,8 +1194,8 @@ class KN :public KN_<R> { public:
for(long i=0,j=0;j<no;i++,j+=so)
this->v[i]=vo[j];
delete [] vo;} }// mars 2010
void destroy(){assert(this->next<0); if(this->next++ ==-1) {delete [] this->v; this->v=0;this->n=0;}}// mars 2010
void increment() {assert(this->next<0); this->next--;}
void destroy(){ if(this->next++ ==-1) {delete [] this->v; this->v=0;this->n=0;}}// mars 2010
void increment() { this->next--;}
};
// Array with 2 indices
......@@ -1299,8 +1299,8 @@ class KNM: public KNM_<R>{ public:
}
}
void destroy(){assert(this->next<0); if(this->next++ ==-1) {delete [] this->v; this->v=0;this->n=0;}}
void increment() {assert(this->next<0); this->next--;}
void destroy(){ if(this->next++ ==-1) {delete [] this->v; this->v=0;this->n=0;}}
void increment() { this->next--;}
// void destroy(){delete [] this->v;this->n=0 ;}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment