]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Unwarningization under Win. B4AnonymousThrowMDL
authorageay <ageay>
Fri, 23 Aug 2013 11:09:14 +0000 (11:09 +0000)
committerageay <ageay>
Fri, 23 Aug 2013 11:09:14 +0000 (11:09 +0000)
src/MEDCoupling/MEDCouplingMemArray.cxx

index ed5371df95b8e9aa6fb010fd5ceea85a5597c7a8..ca8343508e47afbb028b5ee5e479200e2b84917b 100644 (file)
@@ -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<const char *>((float *)tmp));
       std::size_t sz(getNbOfElems()*sizeof(float));
       byteArr->insertAtTheEnd(data,data+sz);