diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h index 8155bd78..e3b3490c 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -1756,7 +1756,7 @@ inline bool divisible_by_power_of_2(uint64_t x, int exp) FMT_NOEXCEPT { #ifdef FMT_BUILTIN_CTZLL return FMT_BUILTIN_CTZLL(x) >= exp; #else - return exp < num_bits()) && x == ((x >> exp) << exp); + return exp < num_bits() && x == ((x >> exp) << exp); #endif }