From: Eugeny MALTCHIKOV Date: Thu, 17 Oct 2019 13:52:17 +0000 (+0300) Subject: Eliminating the Wsign-compare warning in medcouplingremapper X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f993dd5076635ae4328934362b778c2e0b97a5e9;p=tools%2Fmedcoupling.git Eliminating the Wsign-compare warning in medcouplingremapper --- diff --git a/src/MEDCoupling/MEDCouplingRemapper.cxx b/src/MEDCoupling/MEDCouplingRemapper.cxx old mode 100644 new mode 100755 index 5521faf67..7cf6cf73b --- a/src/MEDCoupling/MEDCouplingRemapper.cxx +++ b/src/MEDCoupling/MEDCouplingRemapper.cxx @@ -104,7 +104,7 @@ void MEDCouplingRemapper::setCrudeMatrix(const MEDCouplingMesh *srcMesh, const M void MEDCouplingRemapper::setCrudeMatrixEx(const MEDCouplingFieldTemplate *src, const MEDCouplingFieldTemplate *target, const std::vector >& m) { restartUsing(src,target); - if(m.size()!=target->getNumberOfTuplesExpected()) + if(ToIdType(m.size())!=target->getNumberOfTuplesExpected()) { std::ostringstream oss; oss << "MEDCouplingRemapper::setMatrixEx : input matrix has " << m.size() << " rows whereas there are " << target->getNumberOfTuplesExpected() << " expected !"; throw INTERP_KERNEL::Exception(oss.str()); @@ -904,7 +904,7 @@ int MEDCouplingRemapper::prepareNotInterpKernelOnlyGaussGauss() } _matrix[*trgId][srcEntry]=1.; } - if(ids0->getNumberOfTuples()!=trgNbOfGaussPts) + if(ToIdType(ids0->getNumberOfTuples())!=trgNbOfGaussPts) { MCAuto orphanTrgIds=nbOfSrcCellsShTrgPts->findIdsEqual(0); MCAuto orphanTrg=trgLoc->selectByTupleId(orphanTrgIds->begin(),orphanTrgIds->end()); @@ -1078,7 +1078,7 @@ void MEDCouplingRemapper::transferUnderground(const MEDCouplingFieldDouble *srcF if(array) { targetField->checkConsistencyLight(); - if(srcNbOfCompo!=targetField->getNumberOfComponents()) + if(srcNbOfCompo!=ToIdType(targetField->getNumberOfComponents())) throw INTERP_KERNEL::Exception("Number of components mismatch !"); } else