From f5fcc610b72d786b9b601032889da1e6c1d62cdc Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Thu, 14 Oct 2021 23:56:58 -0500 Subject: [PATCH] Silence Clang warning. Clang warns about bitwise operators on bools. Cast to int silences the warning without introducing short circut logic. Change-Id: I6e25138e1acf4a5562d3925ea5b2fcef3addb783 [ROCm/ROCR-Runtime commit: 4b0c94cfe8f3072a3cf5c7687fc283536450611c] --- projects/rocr-runtime/runtime/hsa-runtime/core/inc/queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/inc/queue.h b/projects/rocr-runtime/runtime/hsa-runtime/core/inc/queue.h index 71866ff8f0..8d2bbf4a21 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/inc/queue.h +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/inc/queue.h @@ -73,7 +73,7 @@ struct AqlPacket { } bool IsValid() const { - return (type() <= HSA_PACKET_TYPE_BARRIER_OR) & (type() != HSA_PACKET_TYPE_INVALID); + return int(type() <= HSA_PACKET_TYPE_BARRIER_OR) & (type() != HSA_PACKET_TYPE_INVALID); } std::string string() const {