From: ageay Date: Fri, 23 Aug 2013 10:55:17 +0000 (+0000) Subject: Unwarningization under Win. X-Git-Tag: B4AnonymousThrowMDL~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=af9dfdaed9cdc6b2bd9bee124250d3685d318976;p=modules%2Fmed.git Unwarningization under Win. --- diff --git a/src/INTERP_KERNEL/Interpolation3D2D.hxx b/src/INTERP_KERNEL/Interpolation3D2D.hxx index f75671223..75bebaee8 100644 --- a/src/INTERP_KERNEL/Interpolation3D2D.hxx +++ b/src/INTERP_KERNEL/Interpolation3D2D.hxx @@ -47,10 +47,10 @@ namespace INTERP_KERNEL INTERPKERNEL_EXPORT Interpolation3D2D(); INTERPKERNEL_EXPORT Interpolation3D2D(const InterpolationOptions& io); template - INTERPKERNEL_EXPORT int interpolateMeshes(const MyMeshType& srcMesh, - const MyMeshType& targetMesh, - MyMatrixType& matrix, - const char *method); + int interpolateMeshes(const MyMeshType& srcMesh, + const MyMeshType& targetMesh, + MyMatrixType& matrix, + const char *method); INTERPKERNEL_EXPORT DuplicateFacesType retrieveDuplicateFaces() const { return _duplicate_faces; } private: SplittingPolicy _splitting_policy; diff --git a/src/MEDCoupling/MEDCouplingMemArray.cxx b/src/MEDCoupling/MEDCouplingMemArray.cxx index 7381e9e39..ed5371df9 100644 --- a/src/MEDCoupling/MEDCouplingMemArray.cxx +++ b/src/MEDCoupling/MEDCouplingMemArray.cxx @@ -1164,7 +1164,7 @@ void DataArrayDouble::writeVTK(std::ostream& ofs, int indent, const char *nameIn float *pt(tmp); // to make Visual C++ happy : instead of std::copy(begin(),end(),(float *)tmp); for(const double *src=begin();src!=end();src++,pt++) - *pt=(int)*src; + *pt=int(*src); const char *data(reinterpret_cast((float *)tmp)); std::size_t sz(getNbOfElems()*sizeof(float)); byteArr->insertAtTheEnd(data,data+sz);