Skip to content

Commit b7f6bf6

Browse files
authored
Fix swapped CAS arguments breaking the one-time-init guard (#247)
swap __sync_val_compare_and_swap arguments
1 parent 7579d45 commit b7f6bf6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/ittnotify/ittnotify_config.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ __itt_interlocked_compare_exchange(volatile long* ptr, long exchange, long compe
359359
ITT_INLINE long
360360
__itt_interlocked_compare_exchange(volatile long* ptr, long exchange, long comperand)
361361
{
362-
return __sync_val_compare_and_swap(ptr, exchange, comperand);
362+
return __sync_val_compare_and_swap(ptr, comperand, exchange);
363363
}
364364
#endif /* ITT_SIMPLE_INIT */
365365

0 commit comments

Comments
 (0)