From d20b8d9a19f2c0342490e014c114ead12715e8d3 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Mon, 11 Aug 2014 16:04:15 -0700 Subject: [PATCH] Fixed GCC compile error. --- include/bx/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bx/cpu.h b/include/bx/cpu.h index 6e68c44..bd6bac4 100644 --- a/include/bx/cpu.h +++ b/include/bx/cpu.h @@ -103,7 +103,7 @@ namespace bx #if BX_COMPILER_MSVC return _InterlockedCompareExchange( (volatile LONG*)(_ptr), _new, _old); #else - return __sync_val_compare_and_swap(_ptr, _old, _new); + return __sync_val_compare_and_swap( (volatile int32_t*)_ptr, _old, _new); #endif // BX_COMPILER }