]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
unwarnigization thanks to Luna.
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 18 Jul 2014 14:52:36 +0000 (16:52 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 18 Jul 2014 14:52:36 +0000 (16:52 +0200)
src/MEDCoupling/MEDCouplingMemArray.cxx

index c63b51e505125ab9ac430353d82bbbcf8dacd551..affee929302656e61b307d1240e9c1368ffbc468 100644 (file)
@@ -9823,7 +9823,8 @@ DataArrayInt *DataArrayInt::buildSubstractionOptimized(const DataArrayInt *other
   checkAllocated(); other->checkAllocated();
   if(getNumberOfComponents()!=1) throw INTERP_KERNEL::Exception(MSG);
   if(other->getNumberOfComponents()!=1) throw INTERP_KERNEL::Exception(MSG);
-  const int *pt1Bg(begin()),*pt1End(end()),*pt2Bg(other->begin()),*pt2End(other->end()),*work1(pt1Bg),*work2(pt2Bg);
+  const int *pt1Bg(begin()),*pt1End(end()),*pt2Bg(other->begin()),*pt2End(other->end());
+  const int *work1(pt1Bg),*work2(pt2Bg);
   MEDCouplingAutoRefCountObjectPtr<DataArrayInt> ret(DataArrayInt::New()); ret->alloc(0,1);
   for(;work1!=pt1End;work1++)
     {