]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
*** empty log message ***
authorageay <ageay>
Tue, 24 Jan 2012 14:48:15 +0000 (14:48 +0000)
committerageay <ageay>
Tue, 24 Jan 2012 14:48:15 +0000 (14:48 +0000)
src/MEDCoupling/MEDCouplingFieldDouble.cxx

index 2d74cf60cf9d257f0ef9bb50515d1c53105374a8..b7987a3479f4eb909aa64c1f3dcc8a798a06a2f8 100644 (file)
@@ -1104,7 +1104,7 @@ void MEDCouplingFieldDouble::getTinySerializationDbleInformation(std::vector<dou
   std::vector<double> tinyInfo2;
   _type->getTinySerializationDbleInformation(tinyInfo2);
   tinyInfo.insert(tinyInfo.end(),tinyInfo2.begin(),tinyInfo2.end());
-  tinyInfo.push_back((int)tinyInfo2.size());
+  tinyInfo.push_back((int)tinyInfo2.size());//very bad, lack of time to improve it
 }
 
 /*!
@@ -1132,7 +1132,7 @@ void MEDCouplingFieldDouble::finishUnserialization(const std::vector<int>& tinyI
   std::vector<int> tinyInfoI2(tinyInfoI.begin()+3,tinyInfoI.end());
   //
   std::vector<double> tmp(tinyInfoD);
-  int sz=tinyInfoD.back();
+  int sz=(int)tinyInfoD.back();//very bad, lack of time to improve it
   tmp.pop_back();
   std::vector<double> tmp1(tmp.begin(),tmp.end()-sz);
   std::vector<double> tmp2(tmp.end()-sz,tmp.end());