summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-06-30 14:23:15 +1000
committerAaron Plattner <aplattner@nvidia.com>2011-04-12 15:47:27 -0700
commit79f463d5fadaf7164e27b2d026710ff880fa5578 (patch)
treeb4686773095b7d6109ef211fbe75d8cc6093259a
parentd46ad8984a11c6ebe7633e0efcc59a700d64105d (diff)
xts5: fix compiler warning.
../../../../xts5/src/lib/nextvinf.c: In function ‘resetvinf’: ../../../../xts5/src/lib/nextvinf.c:162: warning: suggest parentheses around comparison in operand of ‘&’ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
-rw-r--r--xts5/src/lib/nextvinf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xts5/src/lib/nextvinf.c b/xts5/src/lib/nextvinf.c
index a452ac5a..834cbf5c 100644
--- a/xts5/src/lib/nextvinf.c
+++ b/xts5/src/lib/nextvinf.c
@@ -159,8 +159,8 @@ XVisualInfo vi;
if (flags == 0)
flags = VI_WIN_PIX;
- if ((flags & (VI_WIN_PIX|VI_ALT_WIN_PIX) == 0 ) ||
- ((flags & ~(VI_WIN_PIX|VI_ALT_WIN_PIX) ) != 0)) {
+ if (((flags & (VI_WIN_PIX|VI_ALT_WIN_PIX)) == 0 ) ||
+ (((flags & ~(VI_WIN_PIX|VI_ALT_WIN_PIX)) ) != 0)) {
printf("Programming error detected in resetvinf\n");
exit(1);
}