Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Avoid left-shift of negative values.



details:   https://anonhg.NetBSD.org/src/rev/5436f58ca05c
branches:  trunk
changeset: 340646:5436f58ca05c
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Sep 22 13:28:02 2015 +0000

description:
Avoid left-shift of negative values.

diffstat:

 sys/dev/ic/athn.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0f6e75952888 -r 5436f58ca05c sys/dev/ic/athn.c
--- a/sys/dev/ic/athn.c Tue Sep 22 13:27:13 2015 +0000
+++ b/sys/dev/ic/athn.c Tue Sep 22 13:28:02 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: athn.c,v 1.10 2014/07/24 19:47:15 riz Exp $    */
+/*     $NetBSD: athn.c,v 1.11 2015/09/22 13:28:02 joerg Exp $  */
 /*     $OpenBSD: athn.c,v 1.83 2014/07/22 13:12:11 mpi Exp $   */
 
 /*-
@@ -23,7 +23,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: athn.c,v 1.10 2014/07/24 19:47:15 riz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: athn.c,v 1.11 2015/09/22 13:28:02 joerg Exp $");
 
 #ifndef _MODULE
 #include "athn_usb.h"          /* for NATHN_USB */
@@ -2248,7 +2248,7 @@
                /* Do not mask the subtype field in management frames. */
                reg = RW(reg, AR_AES_MUTE_MASK1_FC0_MGMT, 0xff);
                reg = RW(reg, AR_AES_MUTE_MASK1_FC1_MGMT,
-                   ~(IEEE80211_FC1_RETRY | IEEE80211_FC1_PWR_MGT |
+                   (uint32_t)~(IEEE80211_FC1_RETRY | IEEE80211_FC1_PWR_MGT |
                      IEEE80211_FC1_MORE_DATA));
                AR_WRITE(sc, AR_AES_MUTE_MASK1, reg);
        }



Home | Main Index | Thread Index | Old Index