Author: adrian
Date: Sat Mar  1 00:11:45 2014
New Revision: 262634
URL: http://svnweb.freebsd.org/changeset/base/262634

Log:
  Be paranoid about bit operations here.

Modified:
  head/sys/dev/etherswitch/arswitch/arswitchreg.h

Modified: head/sys/dev/etherswitch/arswitch/arswitchreg.h
==============================================================================
--- head/sys/dev/etherswitch/arswitch/arswitchreg.h     Sat Mar  1 00:09:36 
2014        (r262633)
+++ head/sys/dev/etherswitch/arswitch/arswitchreg.h     Sat Mar  1 00:11:45 
2014        (r262634)
@@ -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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to