aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomek Bury <tomek.bury@broadcom.com>2020-02-24 11:02:44 +0000
committerTomek Bury <tomek.bury@broadcom.com>2020-02-24 11:02:44 +0000
commitef40f82ac1b90f49af0f147d958a558cc980cb8b (patch)
tree949c8fa7471162a6ea3df864a2b4f110634df1ed /src
parentcursor/os-compatibility: move resizing into a separate function (diff)
downloadwayland-ef40f82ac1b90f49af0f147d958a558cc980cb8b.tar
wayland-ef40f82ac1b90f49af0f147d958a558cc980cb8b.tar.gz
wayland-ef40f82ac1b90f49af0f147d958a558cc980cb8b.tar.bz2
wayland-ef40f82ac1b90f49af0f147d958a558cc980cb8b.tar.lz
wayland-ef40f82ac1b90f49af0f147d958a558cc980cb8b.tar.xz
wayland-ef40f82ac1b90f49af0f147d958a558cc980cb8b.tar.zst
wayland-ef40f82ac1b90f49af0f147d958a558cc980cb8b.zip
util: fix compiler warning
conversion to 'wl_fixed_t {aka int}' from 'int64_t {aka long int}' may alter its value [-Werror=conversion]
Diffstat (limited to 'src')
-rw-r--r--src/wayland-util.h2
1 files changed, 1 insertions, 1 deletions
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;
}
/**