From 69a84198b09a2b96d76c090ecbe225f5ae7602f9 Mon Sep 17 00:00:00 2001 From: Tobias Hammer Date: Thu, 29 Oct 2020 15:08:06 +0100 Subject: [PATCH] Remove accidental parenthesis (#1968) fails only when FMT_BUILTIN_CTZLL is not defined --- include/fmt/format-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }