summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2018-11-16 08:52:57 -0500
committerBehdad Esfahbod <behdad@behdad.org>2018-11-16 08:52:57 -0500
commit50d1a41c08ad3508a94240b52df03c383ae8f1f8 (patch)
tree4b4776b21554b05fb4a8b6c6a66baaa6daf870dd
parent0aab861f9cda6fba5ce71562d9f087d924e8a161 (diff)
[coretext] Hopefully the last one
-rw-r--r--src/hb-coretext.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc
index 0831ecb9..918f649d 100644
--- a/src/hb-coretext.cc
+++ b/src/hb-coretext.cc
@@ -357,7 +357,7 @@ retry:
/* Drop and recreate. */
/* If someone dropped it in the mean time, throw it away and don't touch it.
* Otherwise, destruct it. */
- if (likely (font->data.coretext.cmpexch (data, nullptr)))
+ if (likely (font->data.coretext.cmpexch (const_cast<hb_coretext_font_data_t *> (data), nullptr)))
_hb_coretext_shaper_font_data_destroy (const_cast<hb_coretext_font_data_t *> (data));
else
goto retry;