Minor
authorBehdad Esfahbod <behdad@behdad.org>
Sat, 21 Feb 2015 13:49:15 +0000 (16:49 +0300)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 25 Feb 2015 23:43:35 +0000 (15:43 -0800)
src/hb-ot-layout-common-private.hh

index 18587d7..3db7f57 100644 (file)
@@ -984,8 +984,9 @@ struct ClassDefFormat1
   private:
   inline unsigned int get_class (hb_codepoint_t glyph_id) const
   {
-    if (unlikely ((unsigned int) (glyph_id - startGlyph) < classValue.len))
-      return classValue[glyph_id - startGlyph];
+    unsigned int i = (unsigned int) (glyph_id - startGlyph);
+    if (unlikely (i < classValue.len))
+      return classValue[i];
     return 0;
   }