From dd6fcec92ccc609435312dd42b9ae3c98c88af40 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 22 Nov 2022 13:27:40 -0700 Subject: [PATCH] [gvar] Remove a conditional --- src/hb-ot-var-gvar-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-var-gvar-table.hh b/src/hb-ot-var-gvar-table.hh index 79fb6a267..2cde67d35 100644 --- a/src/hb-ot-var-gvar-table.hh +++ b/src/hb-ot-var-gvar-table.hh @@ -647,7 +647,7 @@ struct gvar /* Check the number of unreferenced points in a contour. If no unref points or no ref points, nothing to do. */ unsigned unref_count = 0; for (unsigned i = start_point; i <= end_point; i++) - if (!deltas.arrayZ[i].flag) unref_count++; + unref_count += !deltas.arrayZ[i].flag; unsigned j = start_point; if (unref_count == 0 || unref_count > end_point - start_point)