st
simple terminal
git clone https://9o.is/git/st.git
commit cd0b07949cdf13410a016718eda1657025ffde3d parent 42aaada89c2845999009e9709c0a134069714c89 Author: noname@inventati.org <noname@inventati.org> Date: Sun, 20 Apr 2014 15:41:40 +0400 misplaced parenthesis in LEN macro Diffstat:
| M | st.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/st.c b/st.c @@ -67,7 +67,7 @@ char *argv0; /* macros */ #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) < (b) ? (b) : (a)) -#define LEN(a) (sizeof(a) / sizeof(a[0])) +#define LEN(a) (sizeof(a) / sizeof(a)[0]) #define DEFAULT(a, b) (a) = (a) ? (a) : (b) #define BETWEEN(x, a, b) ((a) <= (x) && (x) <= (b)) #define LIMIT(x, a, b) (x) = (x) < (a) ? (a) : (x) > (b) ? (b) : (x)