git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1099
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2004-08-24 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/client.h: Properly parenthesize "flag" argument to
+ FLAGSET_INDEX() and FLAGSET_MASK() macros.
+
2004-08-22 Michael Poole <mdpoole@troilus.org>
* ircd/channel.c (send_channel_modes): If oplevels are disabled,
typedef unsigned long flagpage_t;
#define FLAGSET_NBITS (8 * sizeof(flagpage_t))
-#define FLAGSET_INDEX(flag) (flag / FLAGSET_NBITS)
-#define FLAGSET_MASK(flag) (1<<(flag % FLAGSET_NBITS))
+#define FLAGSET_INDEX(flag) ((flag) / FLAGSET_NBITS)
+#define FLAGSET_MASK(flag) (1<<((flag) % FLAGSET_NBITS))
#define DECLARE_FLAGSET(name,max) \
struct name \