diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2010-06-30 14:23:15 +1000 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2011-04-12 15:47:27 -0700 |
commit | 79f463d5fadaf7164e27b2d026710ff880fa5578 (patch) | |
tree | b4686773095b7d6109ef211fbe75d8cc6093259a | |
parent | d46ad8984a11c6ebe7633e0efcc59a700d64105d (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.c | 4 |
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); } |