clang: remove double promotion

Enterprise / Virtualization / SPICE - Victor Toso [victortoso.com] - 8 January 2018 10:20 EST

> 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; > ~~~ ~~~~~~~~~~~~~^~~

07c7e236 clang: remove double promotion
server/tests/test-display-resolution-changes.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share