mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-14 04:12:42 +00:00
clang: remove double promotion
> test-display-resolution-changes.c:55:60: error: implicit conversion > increases floating-point precision: 'float' to 'double' > command->create_primary.width = 800 + sin((float)count / 6) * 200; > ~~~ ~~~~~~~~~~~~~^~~ > test-display-resolution-changes.c:56:61: error: implicit conversion > increases floating-point precision: 'float' to 'double' > command->create_primary.height = 600 + cos((float)count / 6) * 200; > ~~~ ~~~~~~~~~~~~~^~~ Signed-off-by: Victor Toso <victortoso@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
e005e7017b
commit
07c7e236fc
@ -52,8 +52,8 @@ set_primary_params(SPICE_GNUC_UNUSED Test *test, Command *command)
|
||||
#endif
|
||||
static int count = 0;
|
||||
|
||||
command->create_primary.width = 800 + sin((float)count / 6) * 200;
|
||||
command->create_primary.height = 600 + cos((float)count / 6) * 200;
|
||||
command->create_primary.width = 800 + sin(count / 6.0) * 200;
|
||||
command->create_primary.height = 600 + cos(count / 6.0) * 200;
|
||||
count++;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user