From f993dd5076635ae4328934362b778c2e0b97a5e9 Mon Sep 17 00:00:00 2001 From: Eugeny MALTCHIKOV Date: Thu, 17 Oct 2019 16:52:17 +0300 Subject: [PATCH] Eliminating the Wsign-compare warning in medcouplingremapper --- src/MEDCoupling/MEDCouplingRemapper.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 src/MEDCoupling/MEDCouplingRemapper.cxx 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 -- 2.39.2