From 8923033eb2dab75e9361e9ea1333deb1213393ce Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 12 Oct 2017 12:01:48 +0200 Subject: [PATCH] [coretext] Use fabs() to silence compiler warning --- src/hb-coretext.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc index 440770500..fbbf56bd3 100644 --- a/src/hb-coretext.cc +++ b/src/hb-coretext.cc @@ -80,8 +80,8 @@ hb_coretext_face_create (CGFontRef cg_font) HB_SHAPER_DATA_ENSURE_DEFINE(coretext, face) HB_SHAPER_DATA_ENSURE_DEFINE_WITH_CONDITION(coretext, font, - fabsf (CTFontGetSize((CTFontRef) data) - - (font->ptem <= 0 ? HB_CORETEXT_DEFAULT_FONT_SIZE : font->ptem)) <= .5) + fabs (CTFontGetSize((CTFontRef) data) - + (font->ptem <= 0 ? HB_CORETEXT_DEFAULT_FONT_SIZE : font->ptem)) <= .5) /* * shaper face data