From dbef4e324da74924886160901463e1bebf8981bf Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 30 Jan 2025 14:54:41 +0000 Subject: [PATCH] [hvgl] Name a value --- src/hb-aat-var-hvgl-table.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/hb-aat-var-hvgl-table.cc b/src/hb-aat-var-hvgl-table.cc index c4b63d3bf..dc025bc23 100644 --- a/src/hb-aat-var-hvgl-table.cc +++ b/src/hb-aat-var-hvgl-table.cc @@ -152,7 +152,8 @@ PartShape::get_path_at (const struct hvgl &hvgl, } double coord = (double) coords.arrayZ[axis_index]; coords4[j] = coord; - column_idx[j] = axis_index * 2 + (coord > 0.); + bool pos = coord > 0.; + column_idx[j] = axis_index * 2 + pos; axis_index++; } if (!j) @@ -183,7 +184,7 @@ PartShape::get_path_at (const struct hvgl &hvgl, { float coord = coords.arrayZ[axis_index]; if (!coord) continue; - bool pos = coord > 0; + bool pos = coord > 0.f; unsigned column_idx = axis_index * 2 + pos; double scalar = (double) fabsf(coord); @@ -313,7 +314,7 @@ void ExtremumColumnStarts::apply_to_coords (hb_array_t out_coords, { float coord = coords.arrayZ[axis_idx]; if (!coord) continue; - bool pos = coord > 0; + bool pos = coord > 0.f; unsigned column_idx = axis_idx * 2 + pos; float scalar = fabsf (coord);