From 2df2dd2d6fcb1bb8bbf7f5fa7b75bd4e502c9c7d Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 13 Feb 2025 11:48:14 +0100 Subject: [PATCH] bit: handle conversion warnings --- src/entt/core/bit.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/core/bit.hpp b/src/entt/core/bit.hpp index 4f5b24b0a..442d168a7 100644 --- a/src/entt/core/bit.hpp +++ b/src/entt/core/bit.hpp @@ -62,7 +62,7 @@ template template [[nodiscard]] constexpr std::enable_if_t, Type> fast_mod(const Type value, const std::size_t mod) noexcept { ENTT_ASSERT_CONSTEXPR(has_single_bit(mod), "Value must be a power of two"); - return value & (mod - 1u); + return static_cast(value & (mod - 1u)); } } // namespace entt