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:
parent
c37100e7d9
commit
6f6e78a26e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue