diff options
author | ed <ed@FreeBSD.org> | 2011-12-25 20:59:39 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-12-25 20:59:39 +0000 |
commit | 64fa7f57154701902c3581f000fa00d4613f1adc (patch) | |
tree | 004b9b36738e4d07f5c081ace3b2df2786019e0e /include/stdatomic.h | |
parent | b5c974de6b8a3108890e218e067cd4cd73cd47e5 (diff) | |
download | FreeBSD-src-64fa7f57154701902c3581f000fa00d4613f1adc.zip FreeBSD-src-64fa7f57154701902c3581f000fa00d4613f1adc.tar.gz |
Fix field name.
The value field in the atomic structure is called __val; not value.
Diffstat (limited to 'include/stdatomic.h')
-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 96aabc3..6913d68 100644 --- a/include/stdatomic.h +++ b/include/stdatomic.h @@ -214,7 +214,7 @@ typedef _Atomic(__uintmax_t) atomic_uintmax_t; #if __has_builtin(__sync_swap) /* Clang provides a full-barrier atomic exchange - use it if available. */ #define atomic_exchange_explicit(object, desired, order) \ - __sync_swap(&(object)->value, desired) + __sync_swap(&(object)->__val, desired) #else /* * __sync_lock_test_and_set() is only an acquire barrier in theory (although in |