Source-Changes-HG archive

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

[src/trunk]: src/sys/sys make __sigmask unsigned



details:   https://anonhg.NetBSD.org/src/rev/6d5b8bc808be
branches:  trunk
changeset: 820626:6d5b8bc808be
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 12 18:29:14 2017 +0000

description:
make __sigmask unsigned

diffstat:

 sys/sys/sigtypes.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 9900def27abc -r 6d5b8bc808be sys/sys/sigtypes.h
--- a/sys/sys/sigtypes.h        Thu Jan 12 18:26:08 2017 +0000
+++ b/sys/sys/sigtypes.h        Thu Jan 12 18:29:14 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sigtypes.h,v 1.10 2012/02/19 21:07:00 rmind Exp $      */
+/*     $NetBSD: sigtypes.h,v 1.11 2017/01/12 18:29:14 christos Exp $   */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -64,7 +64,7 @@
 /*
  * Macro for manipulating signal masks.
  */
-#define __sigmask(n)           (1 << (((unsigned int)(n) - 1) & 31))
+#define __sigmask(n)           (1U << (((unsigned int)(n) - 1) & 31))
 #define        __sigword(n)            (((unsigned int)(n) - 1) >> 5)
 #define        __sigaddset(s, n)       ((s)->__bits[__sigword(n)] |= __sigmask(n))
 #define        __sigdelset(s, n)       ((s)->__bits[__sigword(n)] &= ~__sigmask(n))



Home | Main Index | Thread Index | Old Index