projects
/
platform
/
upstream
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
230885e
)
util: fix compiler warning
author
Tomek Bury
<tomek.bury@broadcom.com>
Mon, 24 Feb 2020 11:02:44 +0000
(11:02 +0000)
committer
Tomek 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
patch
|
blob
|
history
diff --git
a/src/wayland-util.h
b/src/wayland-util.h
index
2115f5c
..
7997778
100644
(file)
--- 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;
}
/**