Skip to content

Commit

Permalink
CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
erincatto committed Jan 22, 2025
1 parent 125a0ed commit ddf12b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ bool b2AtomicCompareExchangeInt( b2AtomicInt* a, int expected, int desired )
return _InterlockedCompareExchange( (long*)&a->value, (long)desired, (long)expected ) == expected;
#elif defined( __GNUC__ ) || defined( __clang__ )
// The value written to expected is ignored
return __atomic_compare_exchange_n( &a->value, *expected, desired, false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST );
return __atomic_compare_exchange_n( &a->value, &expected, desired, false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST );
#else
#error "Unsupported platform"
#endif
Expand Down

0 comments on commit ddf12b3

Please sign in to comment.