[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Tue Nov 13 18:01:35 UTC 2018
src/hb-atomic.hh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 475be9d5c672db6e1764d9425ed7fdaa0dff35c9
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Tue Nov 13 13:01:13 2018 -0500
Fix Windows build
diff --git a/src/hb-atomic.hh b/src/hb-atomic.hh
index 3ccaf554..545c937a 100644
--- a/src/hb-atomic.hh
+++ b/src/hb-atomic.hh
@@ -257,10 +257,10 @@ static_assert ((sizeof (long) == sizeof (void *)), "");
inline void hb_atomic_int_impl_set (int *AI, int v) { _hb_memory_w_barrier (); *AI = v; }
#endif
#ifndef hb_atomic_int_impl_get
-inline int hb_atomic_int_impl_get (int *AI) { int v = *AI; _hb_memory_r_barrier (); return v; }
+inline int hb_atomic_int_impl_get (const int *AI) { int v = *AI; _hb_memory_r_barrier (); return v; }
#endif
#ifndef hb_atomic_ptr_impl_get
-inline void *hb_atomic_ptr_impl_get (void **P) { void *v = *P; _hb_memory_r_barrier (); return v; }
+inline void *hb_atomic_ptr_impl_get (void ** const P) { void *v = *P; _hb_memory_r_barrier (); return v; }
#endif
More information about the HarfBuzz
mailing list