1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00

Fix extra-semi-stmt (#60)

This commit is contained in:
Florian Becker 2020-10-21 17:02:40 +02:00 committed by GitHub
parent 3080a1d726
commit bb32605276
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -280,7 +280,7 @@ constexpr I log2(I value) noexcept {
static_assert(std::is_integral_v<I>, "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;
}