From caf0412690542e58e23246dccc4b2fb83bd652ec Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 9 Jun 2012 00:26:32 -0400 Subject: [PATCH] Minor --- src/hb-ot-layout-common-private.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-layout-common-private.hh b/src/hb-ot-layout-common-private.hh index 2943a7f..a3afb08 100644 --- a/src/hb-ot-layout-common-private.hh +++ b/src/hb-ot-layout-common-private.hh @@ -558,7 +558,7 @@ struct ClassDefFormat1 private: inline unsigned int get_class (hb_codepoint_t glyph_id) const { - if ((unsigned int) (glyph_id - startGlyph) < classValue.len) + if (unlikely ((unsigned int) (glyph_id - startGlyph) < classValue.len)) return classValue[glyph_id - startGlyph]; return 0; } -- 2.7.4