From: Anthony Geay Date: Mon, 17 Feb 2020 11:59:25 +0000 (+0100) Subject: Fix compilation problem when vtkIdType is 64bits integer X-Git-Tag: V9_5_0a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e237ad535921df39022db48822961ae37d4ce815;p=modules%2Fparavis.git Fix compilation problem when vtkIdType is 64bits integer --- diff --git a/src/Plugins/VoroGauss/IO/vtkVoroGauss.cxx b/src/Plugins/VoroGauss/IO/vtkVoroGauss.cxx index c3776572..d8c3842f 100644 --- a/src/Plugins/VoroGauss/IO/vtkVoroGauss.cxx +++ b/src/Plugins/VoroGauss/IO/vtkVoroGauss.cxx @@ -205,7 +205,7 @@ DataArrayIdType *ConvertVTKArrayToMCArrayInt(vtkDataArray *data) vtkIdTypeArray *d2(vtkIdTypeArray::SafeDownCast(data)); if(d2) { - const int *pt(d2->GetPointer(0)); + const vtkIdType *pt(d2->GetPointer(0)); std::copy(pt,pt+nbElts,ptOut); return ret.retn(); } @@ -378,7 +378,7 @@ vtkSmartPointer ConvertUMeshFromMCToVTK(const MEDCouplingUM { case 3: { - int *cPtr(nullptr),*dPtr(nullptr); + vtkIdType *cPtr(nullptr),*dPtr(nullptr); unsigned char *aPtr(nullptr); vtkSmartPointer cellTypes(vtkSmartPointer::New()); { @@ -460,7 +460,7 @@ vtkSmartPointer ConvertUMeshFromMCToVTK(const MEDCouplingUM unsigned char *ptr(cellTypes->GetPointer(0)); std::fill(ptr,ptr+nbCells,zeMapRev[(int)INTERP_KERNEL::NORM_POLYGON]); } - int *cPtr(0),*dPtr(0); + vtkIdType *cPtr(0),*dPtr(0); vtkSmartPointer cellLocations(vtkSmartPointer::New()); { cellLocations->SetNumberOfComponents(1); @@ -495,7 +495,7 @@ vtkSmartPointer ConvertUMeshFromMCToVTK(const MEDCouplingUM unsigned char *ptr(cellTypes->GetPointer(0)); std::fill(ptr,ptr+nbCells,zeMapRev[(int)INTERP_KERNEL::NORM_SEG2]); } - int *cPtr(0),*dPtr(0); + vtkIdType *cPtr(0),*dPtr(0); vtkSmartPointer cellLocations(vtkSmartPointer::New()); { cellLocations->SetNumberOfComponents(1); @@ -698,7 +698,7 @@ vtkSmartPointer Voronize(const MEDCouplingUMesh *m, const D } if(elt4) { - vtkSmartPointer arr(ExtractFieldFieldArr(elt4,zeSizeOfOutCellArr,nbOfCellsOfInput,myOffsetsPtr,nbPtsPerCellArrPtr)); + vtkSmartPointer arr(ExtractFieldFieldArr(elt4,zeSizeOfOutCellArr,nbOfCellsOfInput,myOffsetsPtr,nbPtsPerCellArrPtr)); ret->GetCellData()->AddArray(arr); continue; } @@ -723,7 +723,7 @@ vtkSmartPointer Voronize(const MEDCouplingUMesh *m, const D } if(elt4) { - vtkSmartPointer arr(ExtractCellFieldArr(elt4,zeSizeOfOutCellArr,nbOfCellsOfInput,ids->begin(),nbPtsPerCellArrPtr)); + vtkSmartPointer arr(ExtractCellFieldArr(elt4,zeSizeOfOutCellArr,nbOfCellsOfInput,ids->begin(),nbPtsPerCellArrPtr)); ret->GetCellData()->AddArray(arr); continue; }