From 241304b2ca746b1409f13624826e6c4e5aa3e5e3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 30 Jan 2025 04:25:54 +0000 Subject: [PATCH] [hvgl] Micro-optimize --- src/hb-aat-var-hvgl-table.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-aat-var-hvgl-table.cc b/src/hb-aat-var-hvgl-table.cc index 6882f47cb..a094f6844 100644 --- a/src/hb-aat-var-hvgl-table.cc +++ b/src/hb-aat-var-hvgl-table.cc @@ -208,7 +208,7 @@ PartShape::get_path_at (const struct hvgl &hvgl, { unsigned end = start + pathSegmentCount; - if (unlikely (end > segmentCount || end * 4 > v.length)) + if (unlikely (end * 4 > v.length)) break; // Resolve blend type