summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-05-10 11:59:07 -0400
committerRich Felker <dalias@aerifal.cx>2012-05-10 11:59:07 -0400
commit2e41887f54a8d01353204cb2509b4c466861e3b4 (patch)
tree2ddef9cff9e90338a9a9ca37e03cb48703c74290 /include
parente0ff0d34dcce6993bedefe5ef61f10701d2b5a09 (diff)
downloadmusl-2e41887f54a8d01353204cb2509b4c466861e3b4.tar.gz
musl-2e41887f54a8d01353204cb2509b4c466861e3b4.tar.bz2
musl-2e41887f54a8d01353204cb2509b4c466861e3b4.tar.xz
musl-2e41887f54a8d01353204cb2509b4c466861e3b4.zip
and another bug in setbit, etc. macros..
Diffstat (limited to 'include')
-rw-r--r--include/sys/param.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/param.h b/include/sys/param.h
index 17e3d669..ddd7709a 100644
--- 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) ((a)[(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,&)