From 8c1b47d7e23910c632993aa444df12cc2338d89a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 19 Feb 2023 20:38:43 -0700 Subject: [PATCH] [font] Fix compiler warnings --- src/hb-font.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-font.hh b/src/hb-font.hh index a9b1e0bce..f503575c3 100644 --- a/src/hb-font.hh +++ b/src/hb-font.hh @@ -697,8 +697,8 @@ struct hb_font_t bool y_neg = y_scale < 0; y_mult = (y_neg ? -((int64_t) -y_scale << 16) : ((int64_t) y_scale << 16)) / upem; - x_strength = fabs (roundf (x_scale * x_embolden)); - y_strength = fabs (roundf (y_scale * y_embolden)); + x_strength = fabsf (roundf (x_scale * x_embolden)); + y_strength = fabsf (roundf (y_scale * y_embolden)); slant_xy = y_scale ? slant * x_scale / y_scale : 0.f;