Fix float-to-double warnings

./hb-ot-glyf-table.hh:978:37: warning: implicit conversion increases floating-point precision: 'float' to 'double' [-Wdouble-promotion]
This commit is contained in:
Behdad Esfahbod 2020-04-18 16:12:18 -07:00
parent c37100e7d9
commit 6f6e78a26e
1 changed files with 2 additions and 2 deletions

View File

@ -974,8 +974,8 @@ struct glyf
: face->table.hmtx->get_side_bearing (gid);
return is_vertical
? ceil (phantoms[PHANTOM_TOP].y) - extents.y_bearing
: floor (phantoms[PHANTOM_LEFT].x);
? ceilf (phantoms[PHANTOM_TOP].y) - extents.y_bearing
: floorf (phantoms[PHANTOM_LEFT].x);
}
#endif