diff --git a/src/hb-atomic.hh b/src/hb-atomic.hh index 6f9d6ec2b3333632106f9bf6a119e52492e8b92c..e1ecad4a5093804122b523539c2d5a4a2097ef0b 100644 --- a/src/hb-atomic.hh +++ b/src/hb-atomic.hh @@ -289,7 +289,7 @@ struct hb_atomic_ptr_t inline void init (T* v_ = nullptr) { set_relaxed (v_); } inline void set_relaxed (T* v_) const { hb_atomic_ptr_impl_set_relaxed (&v, v_); } - inline T *get_relaxed (void) const { return hb_atomic_ptr_impl_get_relaxed (&v); } + inline T *get_relaxed (void) const { return (T *) hb_atomic_ptr_impl_get_relaxed (&v); } inline T *get (void) const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } inline bool cmpexch (const T *old, T *new_) const{ return hb_atomic_ptr_impl_cmpexch (&v, old, new_); }