From 4191cf20c0d7e3b73c656d9afa5a35404b43e3ce Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 5 Mar 2026 01:23:52 -0300 Subject: [PATCH] Fix -Wdouble-promotion warnings Fixes https://github.com/harfbuzz/harfbuzz/issues/5785 --- util/vector-output.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/vector-output.hh b/util/vector-output.hh index 1c3cf3625..ef11ffa6f 100644 --- a/util/vector-output.hh +++ b/util/vector-output.hh @@ -394,10 +394,10 @@ struct vector_output_t : output_options_t<>, view_options_t if (y2 <= y1) y2 = y1 + 1; - x1 -= margin.l; - y1 -= margin.t; - x2 += margin.r; - y2 += margin.b; + x1 -= (float) margin.l; + y1 -= (float) margin.t; + x2 += (float) margin.r; + y2 += (float) margin.b; extents->x = x1; extents->y = y1;