From cdfbd7b6c6d00a6ff31496d1797c957406b94239 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 4 Jun 2023 15:58:14 -0600 Subject: [PATCH] [subset/cff1] Micro-optimize --- src/hb-ot-cff1-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-cff1-table.hh b/src/hb-ot-cff1-table.hh index e1d8f2926..c1cdc5c02 100644 --- a/src/hb-ot-cff1-table.hh +++ b/src/hb-ot-cff1-table.hh @@ -395,7 +395,6 @@ struct Charset1_2 { code_pair_t *cache = nullptr) const { if (unlikely (glyph >= num_glyphs)) return 0; - if (unlikely (glyph == 0)) return 0; unsigned i; hb_codepoint_t start_glyph; if (cache && likely (cache->glyph <= glyph)) @@ -405,6 +404,7 @@ struct Charset1_2 { } else { + if (unlikely (glyph == 0)) return 0; i = 0; start_glyph = 1; }