[dev] [st] [PATCH 1/2] Use MAX macro where possible.

From: noname <noname_AT_inventati.org>
Date: Thu, 9 Apr 2015 20:04:43 +0000

---
 st.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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();
-- 
1.8.4
Received on Thu Apr 09 2015 - 22:04:43 CEST

This archive was generated by hypermail 2.3.0 : Thu Apr 09 2015 - 22:12:08 CEST