diff options
author | mvdan@mvdan.cc <mvdan@mvdan.cc> | 2015-04-22 15:08:00 +0200 |
---|---|---|
committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2015-04-27 10:09:49 +0200 |
commit | 4f21c41a1c19f769a2bf7941ee18fa0606266cca (patch) | |
tree | c7bde8669683a407a10f8190f962907215e6003d | |
parent | 3a5053f6c19195df5fde84a7e5eb3217443bb9ab (diff) | |
download | st-patched-4f21c41a1c19f769a2bf7941ee18fa0606266cca.tar.bz2 st-patched-4f21c41a1c19f769a2bf7941ee18fa0606266cca.tar.xz st-patched-4f21c41a1c19f769a2bf7941ee18fa0606266cca.zip |
Clarify calculation precedence for '&' and '?'
Signed-off-by: Daniel Martà <mvdan@mvdan.cc>
-rw-r--r-- | st.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -855,9 +855,9 @@ mousereport(XEvent *e) { | |||
855 | } | 855 | } |
856 | 856 | ||
857 | if(!IS_SET(MODE_MOUSEX10)) { | 857 | if(!IS_SET(MODE_MOUSEX10)) { |
858 | button += (state & ShiftMask ? 4 : 0) | 858 | button += ((state & ShiftMask ) ? 4 : 0) |
859 | + (state & Mod4Mask ? 8 : 0) | 859 | + ((state & Mod4Mask ) ? 8 : 0) |
860 | + (state & ControlMask ? 16 : 0); | 860 | + ((state & ControlMask) ? 16 : 0); |
861 | } | 861 | } |
862 | 862 | ||
863 | len = 0; | 863 | len = 0; |