From 4f21c41a1c19f769a2bf7941ee18fa0606266cca Mon Sep 17 00:00:00 2001 From: "mvdan@mvdan.cc" Date: Wed, 22 Apr 2015 15:08:00 +0200 Subject: Clarify calculation precedence for '&' and '?' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Martí --- st.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/st.c b/st.c index 6f8d83f..6c167b5 100644 --- a/st.c +++ b/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; -- cgit v1.2.3