diff --git a/ops.h b/ops.h index 5fea717..8f92d82 100644 --- a/ops.h +++ b/ops.h @@ -62,7 +62,8 @@ HWY_INLINE constexpr std::enable_if_t< std::is_arithmetic_v && std::is_arithmetic_v, To> StaticCast(From from) noexcept { if constexpr (std::is_unsigned_v && std::is_floating_point_v) - return static_cast(static_cast(from)); + return static_cast( + static_cast>(from)); else return static_cast(from); }