From aee2d10b2bf09814b32bccdecd4c3fbebafc542e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 8 Aug 2018 22:40:10 -0700 Subject: [PATCH] [atomic] Change Solaris atomic int to signed --- src/hb-atomic-private.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-atomic-private.hh b/src/hb-atomic-private.hh index 0b043e698..aedfe9b5b 100644 --- a/src/hb-atomic-private.hh +++ b/src/hb-atomic-private.hh @@ -126,12 +126,12 @@ typedef int hb_atomic_int_impl_t; #define _hb_memory_w_barrier() __machine_w_barrier () #define _hb_memory_barrier() __machine_rw_barrier () -typedef unsigned int hb_atomic_int_impl_t; +typedef int hb_atomic_int_impl_t; static inline int _hb_fetch_and_add (hb_atomic_int_impl_t *AI, int V) { _hb_memory_w_barrier (); - int result = atomic_add_int_nv (AI, V); + int result = atomic_add_int_nv ((uint_t *) AI, V); _hb_memory_r_barrier (); return result; }