[cff] minor

This commit is contained in:
Ebrahim Byagowi 2019-10-01 15:05:02 +03:30 committed by GitHub
parent 0558413f27
commit 2d7221a0e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -564,7 +564,7 @@ struct FDSelect3_4
if (glyph < ranges[i].first) if (glyph < ranges[i].first)
break; break;
return (hb_codepoint_t)ranges[i - 1].fd; return (hb_codepoint_t) ranges[i - 1].fd;
} }
GID_TYPE &nRanges () { return ranges.len; } GID_TYPE &nRanges () { return ranges.len; }
@ -608,8 +608,8 @@ struct FDSelect
hb_codepoint_t get_fd (hb_codepoint_t glyph) const hb_codepoint_t get_fd (hb_codepoint_t glyph) const
{ {
if (this == &Null (FDSelect)) if (this == &Null (FDSelect)) return 0;
return 0;
switch (format) switch (format)
{ {
case 0: return u.format0.get_fd (glyph); case 0: return u.format0.get_fd (glyph);