[hackers] [st] Use != instead of ^ for logical values. || noname

From: <git_AT_suckless.org>
Date: Fri, 25 Apr 2014 23:58:39 +0200

commit 1b0b9759dca9739da04f5c8a206b2f8ee5ed8b25
Author: noname <noname_AT_inventati.org>
Date: Wed Apr 23 23:12:36 2014 +0400

    Use != instead of ^ for logical values.
    
    sel.alt is only changed by
            sel.alt = IS_SET(MODE_ALTSCREEN);

diff --git a/st.c b/st.c
index 1a2b1dd..ff9bdd8 100644
--- a/st.c
+++ b/st.c
_AT_@ -3457,7 +3457,7 @@ drawregion(int x1, int y1, int x2, int y2) {
         bool ena_sel = sel.ob.x != -1;
         long unicodep;
 
- if(sel.alt ^ IS_SET(MODE_ALTSCREEN))
+ if(sel.alt != IS_SET(MODE_ALTSCREEN))
                 ena_sel = 0;
 
         if(!(xw.state & WIN_VISIBLE))
Received on Fri Apr 25 2014 - 23:58:39 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 26 2014 - 00:00:27 CEST