From: Rich Felker Date: Thu, 10 May 2012 16:10:44 +0000 (-0400) Subject: fix missing parens in bit op macros (param.h) X-Git-Tag: v0.9.1~66 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bfb29b666ed4ab2f6679e0cb0ac92b12abf0abc3;p=oweals%2Fmusl.git fix missing parens in bit op macros (param.h) --- diff --git a/include/sys/param.h b/include/sys/param.h index ddd7709a..344c0d23 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) ((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,&)