util: fix compiler warning
authorTomek Bury <tomek.bury@broadcom.com>
Mon, 24 Feb 2020 11:02:44 +0000 (11:02 +0000)
committerTomek Bury <tomek.bury@broadcom.com>
Mon, 24 Feb 2020 11:02:44 +0000 (11:02 +0000)
conversion to 'wl_fixed_t {aka int}' from 'int64_t {aka long int}'
may alter its value [-Werror=conversion]

src/wayland-util.h

index 2115f5c..7997778 100644 (file)
@@ -640,7 +640,7 @@ wl_fixed_from_double(double d)
 
        u.d = d + (3LL << (51 - 8));
 
-       return u.i;
+       return (wl_fixed_t)u.i;
 }
 
 /**