From 112a5ea3883e9fafec7a445b322f8b5e7dc11de3 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 11 Apr 2017 09:47:26 +0200
Subject: [PATCH] fix compile with gcc 4.7.2 linux

---
 contrib/bamg/RNM.hpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/contrib/bamg/RNM.hpp b/contrib/bamg/RNM.hpp
index 053efd1d3b..83678edd0f 100644
--- a/contrib/bamg/RNM.hpp
+++ b/contrib/bamg/RNM.hpp
@@ -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 ;}
 
-- 
GitLab