From 8e3d4bae033bdec649676da26cfc3eb7610832a8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 21 Feb 2015 12:31:59 +0300 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 e1437fc0a..18587d7b6 100644 --- a/src/hb-ot-layout-common-private.hh +++ b/src/hb-ot-layout-common-private.hh @@ -1041,7 +1041,7 @@ struct ClassDefFormat2 inline unsigned int get_class (hb_codepoint_t glyph_id) const { int i = rangeRecord.bsearch (glyph_id); - if (i != -1) + if (unlikely (i != -1)) return rangeRecord[i].value; return 0; }