Skip to content
  • Victor Toso's avatar
    clang: remove double promotion · 07c7e236
    Victor Toso authored and Frediano Ziglio's avatar Frediano Ziglio committed
    
    
    > 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: default avatarVictor Toso <victortoso@redhat.com>
    Acked-by: default avatarFrediano Ziglio <fziglio@redhat.com>
    07c7e236