Fix compilation with -Werror=float-conversion

Better make the conversions explicit so that we don't get any surprises.

Fixes #4065
This commit is contained in:
Wim Taymans 2024-06-18 12:17:56 +02:00
parent 50870aac57
commit 1ae4374ccf
71 changed files with 286 additions and 284 deletions

View file

@ -215,7 +215,7 @@ endpoint_init(struct endpoint * self)
self->info.params = param_info;
self->info.n_params = SPA_N_ELEMENTS (param_info);
self->props.volume = 0.9;
self->props.volume = 0.9f;
self->props.mute = false;
}