From: rnv Date: Wed, 29 Jan 2020 18:40:49 +0000 (+0300) Subject: #18634 [CEA] [Windows] MEDReader files failure X-Git-Tag: V9_5_0a1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f29894eaa8d012fd57070101a41bfcbe93558f13;p=tools%2Fmedcoupling.git #18634 [CEA] [Windows] MEDReader files failure --- diff --git a/src/MEDLoader/MEDFileBasis.hxx b/src/MEDLoader/MEDFileBasis.hxx index 22b772f00..2b4f80f5c 100644 --- a/src/MEDLoader/MEDFileBasis.hxx +++ b/src/MEDLoader/MEDFileBasis.hxx @@ -75,7 +75,7 @@ namespace MEDCoupling static DataArrayMedInt *New() { return new DataArrayMedInt(); } DataArrayMedInt *deepCopy() const { return new DataArrayMedInt(*this); } //DataArrayMedInt *buildNewEmptyInstance() const { return new DataArrayMedInt(); }//ko - DataArray *buildNewEmptyInstance() const { if ( sizeof(med_int)==sizeof(long)) return DataArrayInt64::New(); return DataArrayInt32::New(); } + DataArray *buildNewEmptyInstance() const { if ( sizeof(med_int)==sizeof(int)) return DataArrayInt32::New(); return DataArrayInt64::New(); } public: DataArray *selectByTupleId(const mcIdType *new2OldBg, const mcIdType *new2OldEnd) const { return this->mySelectByTupleId(new2OldBg,new2OldEnd); } DataArray *selectByTupleId(const DataArrayIdType& di) const { return this->mySelectByTupleId(di); }