From 723881f31d65353e80660e6d8cd9785e6ec1b430 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 9 Mar 2016 09:33:48 -0500 Subject: xv: Build left-shift constants from ints not longs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We typically store these in ints in server, leading to warnings like: xwayland-glamor-xv.c: In function ‘xwl_glamor_xv_add_adaptors’: xwayland-glamor-xv.c:339:16: warning: large integer implicitly truncated to unsigned type [-Woverflow] pa->type = XvWindowMask | XvInputMask | XvImageMask;; ^ Signed-off-by: Adam Jackson Reviewed-by: Olivier Fourdan --- Xv.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Xv.h') diff --git a/Xv.h b/Xv.h index ef3f786..f662df6 100644 --- a/Xv.h +++ b/Xv.h @@ -59,8 +59,8 @@ typedef XID XvEncodingID; #define XvInput 0 #define XvOutput 1 -#define XvInputMask (1L<