From bdf48204c91d9d54ab645a5de583030e5c23d0b5 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Thu, 16 Jan 2020 19:49:51 +0900 Subject: [PATCH] Use parentheses in the definition of sigset_t's val member, otherwise it will be 16 times as large as intended --- include/signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/signal.h b/include/signal.h index 78031e2..7de589c 100644 --- a/include/signal.h +++ b/include/signal.h @@ -54,7 +54,7 @@ typedef struct siginfo siginfo_t; typedef unsigned int clock_t; typedef struct { - unsigned long int val[1024 / 8 * sizeof(unsigned long int)]; + unsigned long int val[1024 / (8 * sizeof(unsigned long int))]; } sigset_t; typedef union { -- 2.47.3