Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Suoranta <tksuoran@gmail.com>2022-06-06 17:05:43 +0300
committerTimo Suoranta <tksuoran@gmail.com>2022-06-06 17:05:43 +0300
commitb8a90830376a85e4f355c81f251591dc02b8cb86 (patch)
tree18da756867c992d58286a6576663af6998e273df
parent958089794bc028d9dba8f3687774e03b7a3b0b7b (diff)
Use explicit operator precendence, avoids warning
-rw-r--r--client/tracy_concurrentqueue.h2
1 files changed, 1 insertions, 1 deletions
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<T>::value && !std::numeric_limits<T>::is_signed, "circular_less_than is intended to be used only with unsigned integer types");
- return static_cast<T>(a - b) > static_cast<T>(static_cast<T>(1) << static_cast<T>(sizeof(T) * CHAR_BIT - 1));
+ return static_cast<T>(a - b) > (static_cast<T>(static_cast<T>(1) << static_cast<T>(sizeof(T) * CHAR_BIT - 1)));
}
#ifdef _MSC_VER
#pragma warning(pop)