From: Tomek Bury Date: Mon, 24 Feb 2020 11:02:44 +0000 (+0000) Subject: util: fix compiler warning X-Git-Tag: 1.18.91~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef40f82ac1b90f49af0f147d958a558cc980cb8b;p=platform%2Fupstream%2Fwayland.git util: fix compiler warning conversion to 'wl_fixed_t {aka int}' from 'int64_t {aka long int}' may alter its value [-Werror=conversion] --- 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; } /**