From 5db432bcf0555f0eb644a3720f5771de5f6077d1 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Thu, 2 Jan 2020 16:08:48 +0100 Subject: [PATCH] code update due to array modification --- src/Plugins/MEDWriter/IO/VTKToMEDMem.cxx | 6 +++--- src/Plugins/VoroGauss/IO/vtkVoroGauss.cxx | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Plugins/MEDWriter/IO/VTKToMEDMem.cxx b/src/Plugins/MEDWriter/IO/VTKToMEDMem.cxx index 19090de0..80a2bc03 100644 --- a/src/Plugins/MEDWriter/IO/VTKToMEDMem.cxx +++ b/src/Plugins/MEDWriter/IO/VTKToMEDMem.cxx @@ -111,11 +111,11 @@ Fam::Fam(const std::string& name) std::map ComputeMapOfType() { std::map ret; - int nbOfTypesInMC(sizeof(MEDCouplingUMesh::MEDCOUPLING2VTKTYPETRADUCER)/sizeof(int)); + int nbOfTypesInMC(sizeof(MEDCOUPLING2VTKTYPETRADUCER)/sizeof( decltype(MEDCOUPLING2VTKTYPETRADUCER[0]) )); for(int i=0;i ComputeMapOfType() { std::map ret; - int nbOfTypesInMC(sizeof(MEDCouplingUMesh::MEDCOUPLING2VTKTYPETRADUCER)/sizeof(int)); + int nbOfTypesInMC(sizeof(MEDCOUPLING2VTKTYPETRADUCER)/sizeof( decltype(MEDCOUPLING2VTKTYPETRADUCER[0]) )); for(int i=0;i ComputeMapOfType() std::map ComputeRevMapOfType() { std::map ret; - int nbOfTypesInMC(sizeof(MEDCouplingUMesh::MEDCOUPLING2VTKTYPETRADUCER)/sizeof(int)); + int nbOfTypesInMC(sizeof(MEDCOUPLING2VTKTYPETRADUCER)/sizeof( decltype(MEDCOUPLING2VTKTYPETRADUCER[0]) )); for(int i=0;i