mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 18:13:53 +01:00
Minor
This commit is contained in:
1 parent
fd94e729cb
commit
5cd9546ba7
1 file changed
+1
-4
@@ -1194,10 +1194,7 @@ struct ClassDefFormat1
|
||||
private:
|
||||
inline unsigned int get_class (hb_codepoint_t glyph_id) const
|
||||
{
|
||||
unsigned int i = (unsigned int) (glyph_id - startGlyph);
|
||||
if (unlikely (i < classValue.len))
|
||||
return classValue[i];
|
||||
return 0;
|
||||
return classValue[(unsigned int) (glyph_id - startGlyph)];
|
||||
}
|
||||
|
||||
inline bool sanitize (hb_sanitize_context_t *c) const
|
||||
|
||||
Reference in new issue
Block a user