diff --git a/src/Plugins/ComplexCore/src/ComplexCore/Filters/Algorithms/FindNeighborhoods.cpp b/src/Plugins/ComplexCore/src/ComplexCore/Filters/Algorithms/FindNeighborhoods.cpp index 3967ab37be..eab94c5298 100644 --- a/src/Plugins/ComplexCore/src/ComplexCore/Filters/Algorithms/FindNeighborhoods.cpp +++ b/src/Plugins/ComplexCore/src/ComplexCore/Filters/Algorithms/FindNeighborhoods.cpp @@ -26,7 +26,7 @@ class FindNeighborhoodsImpl float32 dBinX, dBinY, dBinZ; float32 criticalDistance1, criticalDistance2; - auto increment = static_cast((end - start) / 100); + auto increment = static_cast(end - start) / 100.0; float64 incCount = 0.0; // NEVER start at 0. if(start == 0)