grTk3.c: warning: suggest parentheses around '-' in operand of '&'

GCC14 -Wall cleanup series [-Wparentheses]
This commit is contained in:
Darryl L. Miles 2024-10-04 17:24:19 +01:00 committed by Tim Edwards
parent 4bfed56924
commit 239366d4b6
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ GrTkReadPixel (w, x, y)
image = XGetImage(grXdpy, grCurrent.windowid, x, grMagicToX(y), 1, 1,
~0, ZPixmap);
value = XGetPixel(image, 0, 0);
return (value & (1 << grDisplay.depth) - 1);
return (value & ((1 << grDisplay.depth) - 1));
}