projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f810da
)
Fix build with clang
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 11 Jan 2017 19:58:13 +0000
(11:58 -0800)
committer
Behdad Esfahbod
<behdad@behdad.org>
Wed, 11 Jan 2017 19:58:13 +0000
(11:58 -0800)
src/hb-open-type-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-open-type-private.hh
b/src/hb-open-type-private.hh
index
e0d5fae
..
8845e3e
100644
(file)
--- a/
src/hb-open-type-private.hh
+++ b/
src/hb-open-type-private.hh
@@
-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_);