tmisplaced parenthesis in LEN macro - st - [fork] customized build of st, the s… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 6b56cbf9cc597b529f244ee8fcb1cbbcc338c7b7 | |
parent 3269bf213d8fdbfb78e9eb1cc9eb677114508e57 | |
Author: [email protected] <[email protected]> | |
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 | |
t@@ -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) |