Salome HOME
Fix warning due to 999b10494c931d01a
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 3 Mar 2021 08:08:24 +0000 (09:08 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 3 Mar 2021 08:08:24 +0000 (09:08 +0100)
src/MEDCoupling/MEDCouplingUMesh.cxx

index a5a17f58c3ae422ad26d1910fe66691b5a68f051..3f885cd438f42416d740936f6ae51fac29acd3b8 100755 (executable)
@@ -304,7 +304,7 @@ void MEDCouplingUMesh::checkGeomConsistency(double eps) const
   for(auto icell = 0 ; icell < nbOfCells ; ++icell)
   {
     std::set<mcIdType> s(ptr+ptrI[icell]+1,ptr+ptrI[icell+1]);
-    if(s.size()==ptrI[icell+1]-ptrI[icell]-1)
+    if(ToIdType(s.size())==ptrI[icell+1]-ptrI[icell]-1)
       continue;
     std::ostringstream oss; oss << "MEDCouplingUMesh::checkGeomConsistency : for cell #" << icell << " presence of multiple same nodeID !";
     throw INTERP_KERNEL::Exception(oss.str());