[hackers] [st] Fixing a precedence problem. Thanks tridactyla! || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Tue, 18 Dec 2012 13:04:00 +0100

commit 4d37763ee767d0c8bd8425744c3375817967dda3
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Tue Dec 18 13:00:00 2012 +0100

    Fixing a precedence problem. Thanks tridactyla!

diff --git a/README b/README
index f6c5d78..e801c02 100644
--- a/README
+++ b/README
_AT_@ -33,3 +33,4 @@ See the man page for additional details.
 Credits
 -------
 Based on AurĂ©lien APTEL <aurelien dot aptel at gmail dot com> bt source code.
+
diff --git a/st.c b/st.c
index 433f7b4..aa72a43 100644
--- a/st.c
+++ b/st.c
_AT_@ -2525,11 +2525,11 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
         /* Intelligent cleaning up of the borders. */
         if(x == 0) {
                 xclear(0, (y == 0)? 0 : winy, borderpx,
- winy + xw.ch + (y == term.row-1)? xw.h : 0);
+ winy + xw.ch + ((y == term.row-1)? xw.h : 0));
         }
         if(x + charlen >= term.col-1) {
                 xclear(winx + width, (y == 0)? 0 : winy, xw.w,
- (y == term.row-1)? xw.h : (winy + xw.ch));
+ ((y == term.row-1)? xw.h : (winy + xw.ch)));
         }
         if(y == 0)
                 xclear(winx, 0, winx + width, borderpx);
Received on Tue Dec 18 2012 - 13:04:00 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 18 2012 - 13:12:06 CET