diff --git a/AK/Math.h b/AK/Math.h index 185a4c2a700..501d1e66415 100644 --- a/AK/Math.h +++ b/AK/Math.h @@ -1017,10 +1017,10 @@ constexpr T pow(T x, T y) template constexpr int clamp_to_int(T value) { - if (value >= NumericLimits::max()) + if (value >= static_cast(NumericLimits::max())) return NumericLimits::max(); - if (value <= NumericLimits::min()) + if (value <= static_cast(NumericLimits::min())) return NumericLimits::min(); if constexpr (IsFloatingPoint)