Salome HOME
LOT7: fix compilation at med_int==int64
[modules/med.git] / src / MEDCalculator / MEDCalculatorDBRangeSelection.cxx
index 06bdcd46ba38fa9fa4fd1fffe532475057fbabb4..b9659adacd39f2538b574e696f05a194d488e3ab 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2019  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -16,6 +16,7 @@
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+// Author : Anthony Geay (CEA/DEN)
 
 #include "MEDCalculatorDBRangeSelection.hxx"
 
@@ -23,7 +24,7 @@
 #include <limits>
 #include <sstream>
 
-using namespace ParaMEDMEM;
+using namespace MEDCoupling;
 
 const char MEDCalculatorDBRangeSelection::ALL_ELTS[]=":";
 
@@ -57,7 +58,7 @@ void MEDCalculatorDBRangeSelection::setPyEnd(int val)
   _end=TraducePyVal(val);
 }
 
-std::vector<int> MEDCalculatorDBRangeSelection::getIds(int lgth) const throw(INTERP_KERNEL::Exception)
+std::vector<std::size_t> MEDCalculatorDBRangeSelection::getIds(int lgth) const throw(INTERP_KERNEL::Exception)
 {
   if(_start>=lgth || _start<0)
     {
@@ -74,7 +75,7 @@ std::vector<int> MEDCalculatorDBRangeSelection::getIds(int lgth) const throw(INT
     throw INTERP_KERNEL::Exception("RangeSelection::getIds : end specficied is higher than length !");
   if(_start>trueEnd)
     throw INTERP_KERNEL::Exception("RangeSelection::getIds : begin of range after end !");
-  std::vector<int> ret(trueEnd-_start);
+  std::vector<std::size_t> ret(trueEnd-_start);
   int j=0;
   for(int i=_start;i<trueEnd;i++,j++)
     ret[j]=i;