mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 01:54:21 +01:00
Fix double to float cast warning.
This commit is contained in:
1 parent
6ef69f749d
commit
a3d8a59dc2
1 file changed
+3
-3
@@ -1094,9 +1094,9 @@ _normalize_axes_location (hb_face_t *face, hb_subset_plan_t *plan)
|
||||
normalized_default = seg_maps->map (normalized_default);
|
||||
normalized_max = seg_maps->map (normalized_max);
|
||||
}
|
||||
plan->axes_location.set (axis_tag, Triple (static_cast<float> (normalized_min / 16384.f),
|
||||
static_cast<float> (normalized_default / 16384.f),
|
||||
static_cast<float> (normalized_max / 16384.f)));
|
||||
plan->axes_location.set (axis_tag, Triple (static_cast<double> (normalized_min / 16384.0),
|
||||
static_cast<double> (normalized_default / 16384.0),
|
||||
static_cast<double> (normalized_max / 16384.0)));
|
||||
|
||||
if (normalized_default != 0)
|
||||
plan->pinned_at_default = false;
|
||||
|
||||
Reference in new issue
Block a user