From 4279304a627d467866aac751548e728eaa841b73 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 18 Jul 2022 22:20:06 -0600 Subject: [PATCH] [stat] Fix double-promotion warnings --- src/hb-ot-stat-table.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hb-ot-stat-table.hh b/src/hb-ot-stat-table.hh index 95d2a4bd5..d83bf1421 100644 --- a/src/hb-ot-stat-table.hh +++ b/src/hb-ot-stat-table.hh @@ -102,7 +102,7 @@ struct AxisValueFormat1 float axis_value = get_value (); if (!user_axes_location->has (axis_tag) || - fabs(axis_value - user_axes_location->get (axis_tag)) < 0.001) + fabsf(axis_value - user_axes_location->get (axis_tag)) < 0.001f) return true; return false; @@ -161,7 +161,7 @@ struct AxisValueFormat2 float axis_value = get_value (); if (!user_axes_location->has (axis_tag) || - fabs(axis_value - user_axes_location->get (axis_tag)) < 0.001) + fabsf(axis_value - user_axes_location->get (axis_tag)) < 0.001f) return true; return false; @@ -224,7 +224,7 @@ struct AxisValueFormat3 float axis_value = get_value (); if (!user_axes_location->has (axis_tag) || - fabs(axis_value - user_axes_location->get (axis_tag)) < 0.001) + fabsf(axis_value - user_axes_location->get (axis_tag)) < 0.001f) return true; return false; @@ -302,7 +302,7 @@ struct AxisValueFormat4 hb_tag_t axis_tag = axis_records[axis_idx].get_axis_tag (); if (user_axes_location->has (axis_tag) && - fabs(axis_value - user_axes_location->get (axis_tag)) > 0.001) + fabsf(axis_value - user_axes_location->get (axis_tag)) > 0.001f) return false; }