[glyf] minor, fix unlikely statements

This commit is contained in:
Ebrahim Byagowi 2020-01-06 12:46:50 +03:30 committed by GitHub
parent 9e48c6e9ef
commit 57b1534198
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -927,7 +927,7 @@ struct glyf
contour_point_vector_t *phantoms=nullptr /* OUT */) const
{
contour_point_vector_t all_points;
if (!unlikely (get_points_bearing_applied (font, gid, all_points))) return false;
if (unlikely (!get_points_bearing_applied (font, gid, all_points))) return false;
if (extents)
{
contour_bounds_t bounds;
@ -1073,7 +1073,7 @@ struct glyf
pad_length--;
}
if (!unlikely (dest_glyph.length)) return_trace (true);
if (unlikely (!dest_glyph.length)) return_trace (true);
/* update components gids */
for (auto &_ : Glyph (dest_glyph).get_composite_iterator ())