From: ageay Date: Wed, 19 Jun 2013 06:17:28 +0000 (+0000) Subject: debug X-Git-Tag: B4CMakeModifs~59 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=36eb0cb725f789628b5c9d0bbdb09d8e205e46a3;p=modules%2Fmed.git debug --- diff --git a/src/MEDCoupling/MEDCouplingMemArray.txx b/src/MEDCoupling/MEDCouplingMemArray.txx index 39030643d..71be0a297 100644 --- a/src/MEDCoupling/MEDCouplingMemArray.txx +++ b/src/MEDCoupling/MEDCouplingMemArray.txx @@ -101,7 +101,7 @@ namespace ParaMEDMEM T *pointer=_pointer.getPointer(); while(first!=last) { - if(_nb_of_elem>=_nb_of_elem_alloc || _nb_of_elem==0) + if(_nb_of_elem>=_nb_of_elem_alloc) { reserve(_nb_of_elem_alloc>0?2*_nb_of_elem_alloc:1); pointer=_pointer.getPointer();