From ef40f82ac1b90f49af0f147d958a558cc980cb8b Mon Sep 17 00:00:00 2001 From: Tomek Bury Date: Mon, 24 Feb 2020 11:02:44 +0000 Subject: [PATCH] util: fix compiler warning conversion to 'wl_fixed_t {aka int}' from 'int64_t {aka long int}' may alter its value [-Werror=conversion] --- src/wayland-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland-util.h b/src/wayland-util.h index 2115f5c..7997778 100644 --- a/src/wayland-util.h +++ b/src/wayland-util.h @@ -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; } /** -- 2.7.4