Salome HOME
merge from master
[tools/sat_salome.git] / products / patches / PARAVIS-MEDLoaderForPV-64BITS_IDS.patch
1 diff --git a/src/Plugins/MEDReader/plugin/MEDLoaderForPV/MEDFileFieldRepresentationTree.cxx b/src/Plugins/MEDReader/plugin/MEDLoaderForPV/MEDFileFieldRepresentationTree.cxx
2 index 87404a4..a8396b3 100644
3 --- a/src/Plugins/MEDReader/plugin/MEDLoaderForPV/MEDFileFieldRepresentationTree.cxx
4 +++ b/src/Plugins/MEDReader/plugin/MEDLoaderForPV/MEDFileFieldRepresentationTree.cxx
5 @@ -270,7 +270,7 @@ void AssignDataPointerToVTK(typename MEDFileVTKTraits<T>::VtkType *vtkTab, typen
6  
7  // here copy is always assumed.
8  template<class VTKT, class MCT>
9 -void AssignDataPointerOther(VTKT *vtkTab, MCT *mcTab, int nbElems)
10 +void AssignDataPointerOther(VTKT *vtkTab, MCT *mcTab, vtkIdType nbElems)
11  {
12    typedef typename VTKT::ValueType VTKType;
13    if ( sizeof( VTKType ) == sizeof( typename MCT::Type ))
14 @@ -732,7 +732,7 @@ vtkUnstructuredGrid *MEDFileFieldRepresentationLeaves::buildVTKInstanceNoTimeInt
15    MCAuto<DataArrayByte> typesSafe(typesMC);
16    MCAuto<DataArrayIdType> cellLocationsSafe(cellLocationsMC),cellsSafe(cellsMC),faceLocationsSafe(faceLocationsMC),facesSafe(facesMC);
17    //
18 -  int nbOfCells(typesSafe->getNbOfElems());
19 +  vtkIdType nbOfCells(typesSafe->getNbOfElems());
20    vtkUnstructuredGrid *ret(vtkUnstructuredGrid::New());
21    vtkUnsignedCharArray *cellTypes(vtkUnsignedCharArray::New());
22    AssignDataPointerOther<vtkUnsignedCharArray,DataArrayByte>(cellTypes,typesSafe,nbOfCells);