mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
50870aac57
commit
1ae4374ccf
71 changed files with 286 additions and 284 deletions
|
|
@ -307,7 +307,7 @@ PWTEST(json_parse)
|
|||
/* non-null terminated strings OK */
|
||||
json = "1.234";
|
||||
spa_json_init(&it[0], json, 4);
|
||||
expect_float(&it[0], 1.23);
|
||||
expect_float(&it[0], 1.23f);
|
||||
expect_end(&it[0]);
|
||||
|
||||
json = "1234";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue