summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-06-30 14:23:15 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-11-15 13:27:59 +1000
commit7157d7e11f45036f899537535ee79b8d61744567 (patch)
tree65f35850c4cc70c876a3c0410adad4bfcd50a9e8
parenta4d82b0c99bcf8510f63a955f3e6092ae1682b76 (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>
-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);
}