Skip to content

Commit

Permalink
fix typo [Bug #17194]
Browse files Browse the repository at this point in the history
  • Loading branch information
nurse committed Sep 26, 2020
1 parent 137fa5b commit ce92d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ruby_atomic.h
Expand Up @@ -28,7 +28,7 @@ typedef unsigned int rb_atomic_t;

typedef unsigned int rb_atomic_t; /* Anything OK */
# define ATOMIC_FETCH_ADD(var, val) __sync_fetch_and_add(&(var), (val))
# define ATOMIC_FETCH_SUB(var, var) __sync_fetch_and_sub(&(var), (val))
# define ATOMIC_FETCH_SUB(var, val) __sync_fetch_and_sub(&(var), (val))
# define ATOMIC_OR(var, val) __sync_fetch_and_or(&(var), (val))
# define ATOMIC_EXCHANGE(var, val) __sync_lock_test_and_set(&(var), (val))
# define ATOMIC_CAS(var, oldval, newval) __sync_val_compare_and_swap(&(var), (oldval), (newval))
Expand Down

0 comments on commit ce92d15

Please sign in to comment.