[hackers] [st] Use MAX macro where possible. || noname
commit 93b54cfcc437c9bac9af3ceb2d9ba19c442de1ff
Author: noname <noname_AT_inventati.org>
Date: Thu Apr 9 20:04:43 2015 +0000
Use MAX macro where possible.
diff --git a/st.c b/st.c
index 0065240..a7064b1 100644
--- a/st.c
+++ b/st.c
_AT_@ -4072,7 +4072,7 @@ main(int argc, char *argv[]) {
run:
setlocale(LC_CTYPE, "");
XSetLocaleModifiers("");
- tnew(cols? cols : 1, rows? rows : 1);
+ tnew(MAX(cols, 1), MAX(rows, 1));
xinit();
selinit();
run();
Received on Fri Apr 10 2015 - 17:52:18 CEST
This archive was generated by hypermail 2.3.0
: Fri Apr 10 2015 - 18:00:16 CEST