[ovs-dev] [urcu v2 01/15] ovs-atomic-gcc4+: Fix parenthesization in atomic_read_explicit().
Ben Pfaff
blp at nicira.com
Tue Mar 11 20:56:03 UTC 2014
Signed-off-by: Ben Pfaff <blp at nicira.com>
---
lib/ovs-atomic-gcc4+.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ovs-atomic-gcc4+.h b/lib/ovs-atomic-gcc4+.h
index b465181..ddfd03c 100644
--- a/lib/ovs-atomic-gcc4+.h
+++ b/lib/ovs-atomic-gcc4+.h
@@ -202,7 +202,7 @@ atomic_signal_fence(memory_order order OVS_UNUSED)
#define atomic_read_explicit(SRC, DST, ORDER) \
(ATOMIC_SWITCH(SRC, \
(atomic_thread_fence_if_seq_cst(ORDER), \
- (*DST) = (SRC)->value, \
+ *(DST) = (SRC)->value, \
atomic_thread_fence(ORDER)), \
*(DST) = locked_uint64_load(AS_LOCKED_UINT64(SRC)), \
*(DST) = locked_int64_load(AS_LOCKED_INT64(SRC))), \
--
1.7.10.4
More information about the dev
mailing list