From 9c270451581a0d7e969c29d65a9ba62b6b7b9b12 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 14 Sep 2021 07:50:35 -0400 Subject: [PATCH] [style] Fix another float conversion warning --- src/hb-style.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-style.cc b/src/hb-style.cc index 9345c24a3..23153dd20 100644 --- a/src/hb-style.cc +++ b/src/hb-style.cc @@ -109,7 +109,7 @@ hb_style_get_value (hb_font_t *font, hb_tag_t tag) return face->table.OS2->v5 ().get_optical_size (&lower, &upper) ? (float) (lower + upper) / 2.f : hb_ot_layout_get_size_params (face, &design, nullptr, nullptr, nullptr, nullptr) - ? design / 10. + ? design / 10.f : 12.f; } case HB_STYLE_TAG_SLANT_ANGLE: