Salome HOME
CMake: using newly created macros SALOME_UPDATE_FLAG_AND_LOG_PACKAGE() and SALOME_PAC...
[modules/med.git] / src / MEDLoader / MEDFileFieldOverView.cxx
index fe76f9d3603500f54de14fc267599c3f16ffbc51..e437d57fa9877d07845e910aebcc3a6f864da1e4 100644 (file)
@@ -99,7 +99,7 @@ int MEDFileMeshStruct::getNumberOfLevs() const
 int MEDFileMeshStruct::getNumberOfGeoTypesInLev(int relativeLev) const
 {
   int pos(-relativeLev);
-  if(pos<0 || pos>=_geo_types_distrib.size())
+  if(pos<0 || pos>=(int)_geo_types_distrib.size())
     throw INTERP_KERNEL::Exception("MEDFileMeshStruct::getNumberOfGeoTypesInLev : invalid level specified !");
   std::size_t sz=_geo_types_distrib[pos].size();
   if(sz%3!=0)
@@ -209,7 +209,7 @@ DataArray *MEDMeshMultiLev::buildDataArray(const MEDFileField1TSStructItem& fst,
 std::string MEDMeshMultiLev::getPflNameOfId(int id) const
 {
   std::size_t sz(_pfls.size());
-  if(id<0 || id>=sz)
+  if(id<0 || id>=(int)sz)
     throw INTERP_KERNEL::Exception("MEDMeshMultiLev::getPflNameOfId : invalid input id !");
   const DataArrayInt *pfl(_pfls[id]);
   if(!pfl)