[coretext] Use fabs() to silence compiler warning

This commit is contained in:
Behdad Esfahbod 2017-10-12 12:01:48 +02:00
parent dd4b321b4a
commit 8923033eb2
1 changed files with 2 additions and 2 deletions

View File

@ -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