From ddea319180469f31548849c2dd6ceea189fb5feb Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Sat, 1 Mar 2014 00:11:45 +0000 Subject: [PATCH] Be paranoid about bit operations here. --- sys/dev/etherswitch/arswitch/arswitchreg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/etherswitch/arswitch/arswitchreg.h b/sys/dev/etherswitch/arswitch/arswitchreg.h index 897bf144485..09156d51dd0 100644 --- a/sys/dev/etherswitch/arswitch/arswitchreg.h +++ b/sys/dev/etherswitch/arswitch/arswitchreg.h @@ -296,7 +296,7 @@ */ /* XXX Linux define compatibility stuff */ -#define BITM(_count) ((1 << _count) - 1) +#define BITM(_count) ((1UL << _count) - 1) #define BITS(_shift, _count) (BITM(_count) << _shift) #define AR934X_REG_OPER_MODE0 0x04