Skip to content

Commit 7905561

Browse files
committed
Fix floats
1 parent e00c69c commit 7905561

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

video/out/wayland_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2231,7 +2231,7 @@ static void info_target_luminance(void *data, struct wp_image_description_info_v
22312231
if (!wd->is_parametric)
22322232
return;
22332233
wd->csp.hdr.min_luma = (float)min_lum / WAYLAND_MIN_LUM_FACTOR;
2234-
wd->csp.hdr.max_luma = (float)max_lum * (203.0/wd->reference_luminance);
2234+
wd->csp.hdr.max_luma = (float)max_lum * (203.0f/wd->reference_luminance);
22352235
}
22362236

22372237
static void info_target_max_cll(void *data, struct wp_image_description_info_v1 *image_description_info,
@@ -2240,7 +2240,7 @@ static void info_target_max_cll(void *data, struct wp_image_description_info_v1
22402240
struct vo_wayland_preferred_description_info *wd = data;
22412241
if (!wd->is_parametric)
22422242
return;
2243-
wd->csp.hdr.max_cll = (float)max_cll * (203.0/wd->reference_luminance);
2243+
wd->csp.hdr.max_cll = (float)max_cll * (203.0f/wd->reference_luminance);
22442244
}
22452245

22462246
static void info_target_max_fall(void *data, struct wp_image_description_info_v1 *image_description_info,

0 commit comments

Comments
 (0)