From b8a90830376a85e4f355c81f251591dc02b8cb86 Mon Sep 17 00:00:00 2001 From: Timo Suoranta Date: Mon, 6 Jun 2022 17:05:43 +0300 Subject: [PATCH] Use explicit operator precendence, avoids warning --- client/tracy_concurrentqueue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/tracy_concurrentqueue.h b/client/tracy_concurrentqueue.h index 75ef2a81..3149deb7 100644 --- a/client/tracy_concurrentqueue.h +++ b/client/tracy_concurrentqueue.h @@ -218,7 +218,7 @@ namespace details static inline bool circular_less_than(T a, T b) { static_assert(std::is_integral::value && !std::numeric_limits::is_signed, "circular_less_than is intended to be used only with unsigned integer types"); - return static_cast(a - b) > static_cast(static_cast(1) << static_cast(sizeof(T) * CHAR_BIT - 1)); + return static_cast(a - b) > (static_cast(static_cast(1) << static_cast(sizeof(T) * CHAR_BIT - 1))); } #ifdef _MSC_VER #pragma warning(pop)