projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e41887
)
fix missing parens in bit op macros (param.h)
author
Rich Felker
<dalias@aerifal.cx>
Thu, 10 May 2012 16:10:44 +0000
(12:10 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 10 May 2012 16:10:44 +0000
(12:10 -0400)
include/sys/param.h
patch
|
blob
|
history
diff --git
a/include/sys/param.h
b/include/sys/param.h
index ddd7709a419b116496da23fa72f369c70ea2be58..344c0d234ba559d4c648ee0c365c24e46b90642e 100644
(file)
--- a/
include/sys/param.h
+++ b/
include/sys/param.h
@@
-18,7
+18,7
@@
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))
-#define __bitop(x,i,o) ((x)[(i)/8] o
1<<(i)%8
)
+#define __bitop(x,i,o) ((x)[(i)/8] o
(1<<(i)%8)
)
#define setbit(x,i) __bitop(x,i,|=)
#define clrbit(x,i) __bitop(x,i,&=~)
#define isset(x,i) __bitop(x,i,&)