diff options
author | noname@inventati.org <noname@inventati.org> | 2014-04-20 15:41:40 +0400 |
---|---|---|
committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2014-04-20 21:07:04 +0200 |
commit | 6b56cbf9cc597b529f244ee8fcb1cbbcc338c7b7 (patch) | |
tree | 00b014bec1bf90446dac262c16d766891a6dabe2 | |
parent | 3269bf213d8fdbfb78e9eb1cc9eb677114508e57 (diff) | |
download | st-6b56cbf9cc597b529f244ee8fcb1cbbcc338c7b7.tar.gz st-6b56cbf9cc597b529f244ee8fcb1cbbcc338c7b7.tar.bz2 |
misplaced parenthesis in LEN macro
-rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |