diff --git a/include/magic_enum.hpp b/include/magic_enum.hpp index 5061ac1..ac16305 100644 --- a/include/magic_enum.hpp +++ b/include/magic_enum.hpp @@ -280,7 +280,7 @@ constexpr I log2(I value) noexcept { static_assert(std::is_integral_v, "magic_enum::detail::log2 requires integral type."); auto ret = I{0}; - for (; value > I{1}; value >>= I{1}, ++ret) {}; + for (; value > I{1}; value >>= I{1}, ++ret) {} return ret; }