Minor
authorBehdad Esfahbod <behdad@behdad.org>
Sat, 9 Jun 2012 04:26:32 +0000 (00:26 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Sat, 9 Jun 2012 04:26:32 +0000 (00:26 -0400)
src/hb-ot-layout-common-private.hh

index 2943a7f..a3afb08 100644 (file)
@@ -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;
   }