From: noname Date: Thu, 9 Apr 2015 20:04:43 +0000 (+0000) Subject: Use MAX macro where possible. X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=93b54cfcc437c9bac9af3ceb2d9ba19c442de1ff;p=st.git Use MAX macro where possible. --- diff --git a/st.c b/st.c index 0065240..a7064b1 100644 --- a/st.c +++ b/st.c @@ -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();