mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
Minor
This commit is contained in:
1 parent
68e04afbb1
commit
ef79bdf73b
1 file changed
+3
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user