Module Name:    src
Committed By:   christos
Date:           Thu Jan 12 18:29:14 UTC 2017

Modified Files:
        src/sys/sys: sigtypes.h

Log Message:
make __sigmask unsigned


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/sys/sigtypes.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/sigtypes.h
diff -u src/sys/sys/sigtypes.h:1.10 src/sys/sys/sigtypes.h:1.11
--- src/sys/sys/sigtypes.h:1.10	Sun Feb 19 16:07:00 2012
+++ src/sys/sys/sigtypes.h	Thu Jan 12 13:29:14 2017
@@ -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 @@ typedef struct {
 /*
  * 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))

Reply via email to