From 2201b35f5efb11beefed21db44de660f06f4026b Mon Sep 17 00:00:00 2001 From: sumanthtg <90063301+sumanthtg@users.noreply.github.com> Date: Mon, 20 Dec 2021 14:04:38 +0530 Subject: [PATCH] SWDEV-309676 - Fix for build failure due to new compiler flag -Wbitwise-instead-of-logical (#2443) Change-Id: I55d230dbb409b93d17dcff2bd29b27100b586e17 --- catch/unit/memory/hipMallocConcurrency.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/catch/unit/memory/hipMallocConcurrency.cc b/catch/unit/memory/hipMallocConcurrency.cc index 5083ea1c25..98bc2ab014 100644 --- a/catch/unit/memory/hipMallocConcurrency.cc +++ b/catch/unit/memory/hipMallocConcurrency.cc @@ -285,8 +285,8 @@ static bool regressAllocInLoopMthread(int gpu) { * Thread func to regress alloc and check data consistency */ static void threadFunc(int gpu) { - g_thTestPassed = regressAllocInLoopMthread(gpu); - g_thTestPassed = g_thTestPassed & validateMemoryOnGpuMThread(gpu); + g_thTestPassed = regressAllocInLoopMthread(gpu) + && validateMemoryOnGpuMThread(gpu); UNSCOPED_INFO("thread execution status on gpu" << gpu << ":" << g_thTestPassed.load());