From 693c04c016c6981b9c294ae7808d835ce18669f2 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Wed, 4 Oct 2023 14:31:15 -0400 Subject: [PATCH] COMP: Fix compiler warnings due to casting. (#709) Signed-off-by: Michael Jackson --- src/Plugins/ComplexCore/test/ImportHDF5DatasetTest.cpp | 2 +- src/Plugins/ComplexCore/test/SurfaceNetsTest.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Plugins/ComplexCore/test/ImportHDF5DatasetTest.cpp b/src/Plugins/ComplexCore/test/ImportHDF5DatasetTest.cpp index 617dc17678..20674beeb0 100644 --- a/src/Plugins/ComplexCore/test/ImportHDF5DatasetTest.cpp +++ b/src/Plugins/ComplexCore/test/ImportHDF5DatasetTest.cpp @@ -53,7 +53,7 @@ void writePointerArrayDataset(complex::HDF5::GroupWriter& ptrGroupWriter) dims = {10, 8, 6, (COMPDIMPROD * TUPLEDIMPROD) / 10 / 8 / 6}; } - hsize_t tSize = std::accumulate(dims.cbegin(), dims.cend(), 1, std::multiplies()); + hsize_t tSize = std::accumulate(dims.cbegin(), dims.cend(), 1UL, std::multiplies()); std::vector data(tSize); for(hsize_t i = 0; i < tSize; ++i) { diff --git a/src/Plugins/ComplexCore/test/SurfaceNetsTest.cpp b/src/Plugins/ComplexCore/test/SurfaceNetsTest.cpp index cf1f1f2b73..acf41f0ddc 100644 --- a/src/Plugins/ComplexCore/test/SurfaceNetsTest.cpp +++ b/src/Plugins/ComplexCore/test/SurfaceNetsTest.cpp @@ -36,8 +36,8 @@ TEST_CASE("ComplexCore::SurfaceNetsFilter: NO Smoothing", "[ComplexCore][Surface // Create default Parameters for the filter. args.insertOrAssign(SurfaceNetsFilter::k_ApplySmoothing_Key, std::make_any(false)); - args.insertOrAssign(SurfaceNetsFilter::k_MaxDistanceFromVoxelCenter_Key, std::make_any(1.0)); - args.insertOrAssign(SurfaceNetsFilter::k_RelaxationFactor_Key, std::make_any(0.5)); + args.insertOrAssign(SurfaceNetsFilter::k_MaxDistanceFromVoxelCenter_Key, std::make_any(1.0f)); + args.insertOrAssign(SurfaceNetsFilter::k_RelaxationFactor_Key, std::make_any(0.5f)); const DataPath gridGeomDataPath({k_DataContainer}); args.insertOrAssign(SurfaceNetsFilter::k_GridGeometryDataPath_Key, std::make_any(gridGeomDataPath));