diff options
author | Adam Jackson <ajax@redhat.com> | 2016-03-09 09:33:48 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-03-09 14:04:27 -0500 |
commit | 723881f31d65353e80660e6d8cd9785e6ec1b430 (patch) | |
tree | 21e389579a64174112ec3a7b96d6767cb28c9365 /Xv.h | |
parent | 384150812b93fef48109582bb53e9580f16f9602 (diff) |
xv: Build left-shift constants from ints not longs
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 <ajax@redhat.com>
Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
Diffstat (limited to 'Xv.h')
-rw-r--r-- | Xv.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -59,8 +59,8 @@ typedef XID XvEncodingID; #define XvInput 0 #define XvOutput 1 -#define XvInputMask (1L<<XvInput) -#define XvOutputMask (1L<<XvOutput) +#define XvInputMask (1<<XvInput) +#define XvOutputMask (1<<XvOutput) #define XvVideoMask 0x00000004 #define XvStillMask 0x00000008 #define XvImageMask 0x00000010 @@ -100,13 +100,13 @@ typedef XID XvEncodingID; #define XvNumReasons (XvLastReason + 1) -#define XvStartedMask (1L<<XvStarted) -#define XvStoppedMask (1L<<XvStopped) -#define XvBusyMask (1L<<XvBusy) -#define XvPreemptedMask (1L<<XvPreempted) -#define XvHardErrorMask (1L<<XvHardError) +#define XvStartedMask (1<<XvStarted) +#define XvStoppedMask (1<<XvStopped) +#define XvBusyMask (1<<XvBusy) +#define XvPreemptedMask (1<<XvPreempted) +#define XvHardErrorMask (1<<XvHardError) -#define XvAnyReasonMask ((1L<<XvNumReasons) - 1) +#define XvAnyReasonMask ((1<<XvNumReasons) - 1) #define XvNoReasonMask 0 /* Errors */ |