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=bc7d395ea8ee7e001bfe17cc423b7e06f00771ea;p=tools%2Fmedcoupling.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);