mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-28 17:15:13 +02:00
grTk3.c: warning: suggest parentheses around '-' in operand of '&'
GCC14 -Wall cleanup series [-Wparentheses]
This commit is contained in:
committed by
Tim Edwards
parent
4bfed56924
commit
239366d4b6
+1
-1
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user