From d692791f72a4fd5913b0b97c4545b185f3df1692 Mon Sep 17 00:00:00 2001 From: Michael Rapp Date: Thu, 22 Feb 2024 00:30:36 +0100 Subject: [PATCH] Fix MSVC compiler error. --- .../src/mlrl/common/input/feature_binning_equal_width.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }