From: ageay Date: Fri, 23 Aug 2013 11:09:14 +0000 (+0000) Subject: Unwarningization under Win. X-Git-Tag: B4AnonymousThrowMDL X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=698aa42b2e85a3fc48e61fd1a628e6a23e22370e;p=modules%2Fmed.git Unwarningization under Win. --- 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);