diff options
author | theraven <theraven@FreeBSD.org> | 2012-01-17 15:20:41 +0000 |
---|---|---|
committer | theraven <theraven@FreeBSD.org> | 2012-01-17 15:20:41 +0000 |
commit | 01d570a9599ba33cf4646ecb7bd75a81d283fc1d (patch) | |
tree | f1243d7b796c926011f38c3365577b59b40666b3 /include | |
parent | 7d3312f434070f9e91e1e5aacd462a155ce05b9d (diff) | |
download | FreeBSD-src-01d570a9599ba33cf4646ecb7bd75a81d283fc1d.zip FreeBSD-src-01d570a9599ba33cf4646ecb7bd75a81d283fc1d.tar.gz |
Fix clang atomic to use for atomic_is_lock_free().
Reviewed by: ed
Approved by: dim (mentor)
Diffstat (limited to 'include')
-rw-r--r-- | include/stdatomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdatomic.h b/include/stdatomic.h index 8a40ae2..18769bb 100644 --- a/include/stdatomic.h +++ b/include/stdatomic.h @@ -118,7 +118,7 @@ enum memory_order { #if defined(__CLANG_ATOMICS) #define atomic_is_lock_free(obj) \ - __atomic_is_lock_free(obj) + __atomic_is_lock_free(sizeof(obj)) #elif defined(__GNUC_ATOMICS) #define atomic_is_lock_free(obj) \ __atomic_is_lock_free(sizeof((obj)->__val)) |