From 06a67ec3c637966bc11e6ff004b93eed3f97d2a1 Mon Sep 17 00:00:00 2001 From: ageay Date: Fri, 23 Aug 2013 11:09:14 +0000 Subject: [PATCH] Unwarningization under Win. --- src/MEDCoupling/MEDCouplingMemArray.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MEDCoupling/MEDCouplingMemArray.cxx b/src/MEDCoupling/MEDCouplingMemArray.cxx index ed5371df9..ca8343508 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=float(*src); const char *data(reinterpret_cast((float *)tmp)); std::size_t sz(getNbOfElems()*sizeof(float)); byteArr->insertAtTheEnd(data,data+sz); -- 2.39.2