src/hb-atomic-private.hh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 63c74e8d1d85067cbeffe635eb5ed4e8aa130776
Author: Behdad Esfahbod <[email protected]>
Date:   Tue Jul 31 22:21:21 2018 -0700

    [atomic] Fix fallback impl

diff --git a/src/hb-atomic-private.hh b/src/hb-atomic-private.hh
index bad409bb..2e73cd85 100644
--- a/src/hb-atomic-private.hh
+++ b/src/hb-atomic-private.hh
@@ -205,10 +205,10 @@ typedef int hb_atomic_int_impl_t;
 #define HB_ATOMIC_INT_INIT(V)          {V}
 #endif
 #ifndef hb_atomic_int_impl_set_relaxed
-#define hb_atomic_int_impl_set_relaxed(AI, V)  ((AI) = (V))
+#define hb_atomic_int_impl_set_relaxed(AI, V)  (*(AI) = (V))
 #endif
 #ifndef hb_atomic_int_impl_get_relaxed
-#define hb_atomic_int_impl_get_relaxed(AI)     (AI)
+#define hb_atomic_int_impl_get_relaxed(AI)     (*(AI))
 #endif
 
 
_______________________________________________
HarfBuzz mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/harfbuzz

Reply via email to