提交 784d1180 编写于 作者: B Behdad Esfahbod

Fix build with clang

上级 1f810daf
......@@ -1133,11 +1133,11 @@ struct hb_lazy_table_loader_t
inline const T* get (void) const
{
retry:
const T *p = (T *) hb_atomic_ptr_get (&instance);
T *p = (T *) hb_atomic_ptr_get (&instance);
if (unlikely (!p))
{
hb_blob_t *blob_ = OT::Sanitizer<T>::sanitize (face->reference_table (T::tableTag));
p = OT::Sanitizer<T>::lock_instance (blob_);
p = const_cast<T *>(OT::Sanitizer<T>::lock_instance (blob_));
if (!hb_atomic_ptr_cmpexch (const_cast<T **>(&instance), NULL, p))
{
hb_blob_destroy (blob_);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册