Skip to content

Commit

Permalink
COMP: Fix compiler warnings due to casting. (#709)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Jackson <[email protected]>
  • Loading branch information
imikejackson authored Oct 4, 2023
1 parent 65a500f commit 693c04c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Plugins/ComplexCore/test/ImportHDF5DatasetTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>());
hsize_t tSize = std::accumulate(dims.cbegin(), dims.cend(), 1UL, std::multiplies<hsize_t>());
std::vector<T> data(tSize);
for(hsize_t i = 0; i < tSize; ++i)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Plugins/ComplexCore/test/SurfaceNetsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool>(false));
args.insertOrAssign(SurfaceNetsFilter::k_MaxDistanceFromVoxelCenter_Key, std::make_any<float32>(1.0));
args.insertOrAssign(SurfaceNetsFilter::k_RelaxationFactor_Key, std::make_any<float32>(0.5));
args.insertOrAssign(SurfaceNetsFilter::k_MaxDistanceFromVoxelCenter_Key, std::make_any<float32>(1.0f));
args.insertOrAssign(SurfaceNetsFilter::k_RelaxationFactor_Key, std::make_any<float32>(0.5f));

const DataPath gridGeomDataPath({k_DataContainer});
args.insertOrAssign(SurfaceNetsFilter::k_GridGeometryDataPath_Key, std::make_any<DataPath>(gridGeomDataPath));
Expand Down

0 comments on commit 693c04c

Please sign in to comment.