From: Anthony Geay Date: Mon, 24 Feb 2020 08:51:14 +0000 (+0100) Subject: Make it run with int64 configuration with non regression tests X-Git-Tag: V9_5_0a1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=116f9ba48b5e85b8d20d51916c7428c99123bca3;p=modules%2Fparavis.git Make it run with int64 configuration with non regression tests --- diff --git a/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx b/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx index 5a044ad9..3a67b540 100644 --- a/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx +++ b/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx @@ -168,11 +168,11 @@ vtkIdTypeArray *ELGACmp::createNew(const MEDCoupling::MEDFileFieldGlobsReal *glo } // vtkIdType ncell(ds->GetNumberOfCells()); - int *pt(new int[ncell]),offset(0); + vtkIdType *pt(new vtkIdType[ncell]),offset(0); for(vtkIdType cellId=0;cellIdGetCell(cellId)); - int delta(m[(unsigned char)cell->GetCellType()]); + vtkIdType delta(m[(unsigned char)cell->GetCellType()]); pt[cellId]=offset; offset+=delta; } @@ -312,12 +312,12 @@ void AssignToFieldData(DataArray *vPtr, const MEDTimeReq *tr, vtkFieldData *att, vtkIdTypeArray *elno(vtkIdTypeArray::New()); elno->SetNumberOfComponents(1); vtkIdType ncell(ds->GetNumberOfCells()); - int *pt(new int[ncell]),offset(0); + vtkIdType *pt(new vtkIdType[ncell]),offset(0); std::set cellTypes; for(vtkIdType cellId=0;cellIdGetCell(cellId)); - int delta(cell->GetNumberOfPoints()); + vtkIdType delta(cell->GetNumberOfPoints()); cellTypes.insert(cell->GetCellType()); pt[cellId]=offset; offset+=delta;