pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a5053f
)
Clarify calculation precedence for '&' and '?'
author
mvdan@mvdan.cc
<mvdan@mvdan.cc>
Wed, 22 Apr 2015 13:08:00 +0000
(15:08 +0200)
committer
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Mon, 27 Apr 2015 08:09:49 +0000
(10:09 +0200)
Signed-off-by: Daniel Martà <mvdan@mvdan.cc>
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
6f8d83f
..
6c167b5
100644
(file)
--- 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;