Skip to content

Commit

Permalink
Fix MSVC compiler error.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-rapp committed Feb 21, 2024
1 parent 86c1b5d commit d692791
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static inline Tuple<float32> getMinAndMaxFeatureValue(const NumericalFeatureVect
return Tuple<float32>(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;
}
Expand Down

0 comments on commit d692791

Please sign in to comment.