diff --git a/cpp/subprojects/common/src/mlrl/common/input/feature_binning_equal_width.cpp b/cpp/subprojects/common/src/mlrl/common/input/feature_binning_equal_width.cpp index aaafe30d7..77ebfe18c 100644 --- a/cpp/subprojects/common/src/mlrl/common/input/feature_binning_equal_width.cpp +++ b/cpp/subprojects/common/src/mlrl/common/input/feature_binning_equal_width.cpp @@ -35,7 +35,7 @@ static inline Tuple getMinAndMaxFeatureValue(const NumericalFeatureVect return Tuple(min, max); } -static inline constexpr uint32 getBinIndex(float32 value, float32 min, float32 width, uint32 numBins) { +static inline uint32 getBinIndex(float32 value, float32 min, float32 width, uint32 numBins) { uint32 binIndex = (uint32) std::floor((value - min) / width); return binIndex >= numBins ? numBins - 1 : binIndex; }