fix sigorset/sigandset: _NSIG/8 is the size in bytes
authorrofl0r <retnyg@gmx.net>
Thu, 6 Dec 2012 21:48:46 +0000 (22:48 +0100)
committerrofl0r <retnyg@gmx.net>
Thu, 6 Dec 2012 21:48:46 +0000 (22:48 +0100)
src/signal/sigandset.c
src/signal/sigorset.c

index f9204c49ff605c9a4fa28c2872cf7d937233d189..e0c6f4867f9037eea8fd3f108acbddb290dd49e5 100644 (file)
@@ -1,7 +1,7 @@
 #define _GNU_SOURCE
 #include <signal.h>
 
-#define SST_SIZE (_NSIG/8)
+#define SST_SIZE (_NSIG/8/sizeof(long))
 
 int sigandset(sigset_t *dest, sigset_t *left, sigset_t *right)
 {
index 5460224bfbb93fac43c59ec873ee6d24b9f5b8ac..df1b1b17deb9040586f6f1b043feebbe79ba8690 100644 (file)
@@ -1,7 +1,7 @@
 #define _GNU_SOURCE
 #include <signal.h>
 
-#define SST_SIZE (_NSIG/8)
+#define SST_SIZE (_NSIG/8/sizeof(long))
 
 int sigorset(sigset_t *dest, sigset_t *left, sigset_t *right)
 {