Fix float-to-double warnings

./hb-ot-glyf-table.hh:978:37: warning: implicit conversion increases floating-point precision: 'float' to 'double' [-Wdouble-promotion]
pull/2345/head
Behdad Esfahbod 5 years ago
parent c37100e7d9
commit 6f6e78a26e
  1. 4
      src/hb-ot-glyf-table.hh

@ -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…
Cancel
Save