[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Fri Nov 16 13:53:15 UTC 2018


 src/hb-coretext.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 50d1a41c08ad3508a94240b52df03c383ae8f1f8
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Fri Nov 16 08:52:57 2018 -0500

    [coretext] Hopefully the last one

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;


More information about the HarfBuzz mailing list