From: Matthias Kruk Date: Thu, 16 Jan 2020 10:49:51 +0000 (+0900) Subject: Use parentheses in the definition of sigset_t's val member, otherwise it will be... X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=bdf48204c91d9d54ab645a5de583030e5c23d0b5;p=corax Use parentheses in the definition of sigset_t's val member, otherwise it will be 16 times as large as intended --- 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 {