From 63b9d736ef3d781748f22774302860abc61a524e Mon Sep 17 00:00:00 2001
From: Berenger Bramas <Berenger.Bramas@inria.fr>
Date: Thu, 20 May 2021 09:17:13 +0200
Subject: [PATCH] Again v3 try to make the intel compiler happy

---
 cpp/particles/lock_free_bool_array.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpp/particles/lock_free_bool_array.hpp b/cpp/particles/lock_free_bool_array.hpp
index 02819147..dbfbfb9d 100644
--- a/cpp/particles/lock_free_bool_array.hpp
+++ b/cpp/particles/lock_free_bool_array.hpp
@@ -69,7 +69,7 @@ public:
             int localBusy = Busy;// Intel complains if we pass a const as last param
             int expected = Available;
 #ifdef __INTEL_COMPILER
-            while(!__sync_val_compare_and_swap(&k->lock, &expected, localBusy)){
+            while(!__sync_val_compare_and_swap((int*)&k->lock, &expected, localBusy)){
 #else
             while(!std::atomic_compare_exchange_strong(&k->lock, &expected, localBusy)){
 #endif
-- 
GitLab