| tClarify calculation precedence for '&' and '?' - st - [fork] customized build … | |
| git clone git://src.adamsgaard.dk/st | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| commit 4f21c41a1c19f769a2bf7941ee18fa0606266cca | |
| parent 3a5053f6c19195df5fde84a7e5eb3217443bb9ab | |
| Author: [email protected] <[email protected]> | |
| Date: Wed, 22 Apr 2015 15:08:00 +0200 | |
| Clarify calculation precedence for '&' and '?' | |
| Signed-off-by: Daniel Martà <[email protected]> | |
| Diffstat: | |
| M st.c | 6 +++--- | |
| 1 file changed, 3 insertions(+), 3 deletions(-) | |
| --- | |
| diff --git a/st.c b/st.c | |
| t@@ -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; |