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

GCC14 -Wall cleanup series [-Wparentheses]
This commit is contained in:
Darryl L. Miles
2024-10-09 21:12:55 -04:00
committed by Tim Edwards
parent 4bfed56924
commit 239366d4b6
+1 -1
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));
}