pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3269bf2
)
misplaced parenthesis in LEN macro
author
noname@inventati.org
<noname@inventati.org>
Sun, 20 Apr 2014 11:41:40 +0000
(15:41 +0400)
committer
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Sun, 20 Apr 2014 19:07:04 +0000
(21:07 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
e017940
..
4ccef9c
100644
(file)
--- 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)