mirror of
https://github.com/alrayyes/st
synced 2023-11-14 15:56:30 +00:00
Clarify calculation precedence for '&' and '?'
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
This commit is contained in:
parent
3a5053f6c1
commit
4f21c41a1c
6
st.c
6
st.c
@ -855,9 +855,9 @@ mousereport(XEvent *e) {
|
||||
}
|
||||
|
||||
if(!IS_SET(MODE_MOUSEX10)) {
|
||||
button += (state & ShiftMask ? 4 : 0)
|
||||
+ (state & Mod4Mask ? 8 : 0)
|
||||
+ (state & ControlMask ? 16 : 0);
|
||||
button += ((state & ShiftMask ) ? 4 : 0)
|
||||
+ ((state & Mod4Mask ) ? 8 : 0)
|
||||
+ ((state & ControlMask) ? 16 : 0);
|
||||
}
|
||||
|
||||
len = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user