From 62d18e09efe179d5bb72d21c0b359ab489d4aa0e Mon Sep 17 00:00:00 2001 From: ageay Date: Fri, 23 Aug 2013 10:55:17 +0000 Subject: [PATCH] Unwarningization under Win. --- src/INTERP_KERNEL/Interpolation3D2D.hxx | 8 ++++---- src/MEDCoupling/MEDCouplingMemArray.cxx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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); -- 2.39.2