From d89e33fc925f824f5fc43e67e6b3512d9e586402 Mon Sep 17 00:00:00 2001 From: Kees van Reeuwijk Date: Mon, 15 Mar 2010 18:33:29 +0000 Subject: [PATCH] Suppressed some warnings in the WIFSIGNALED macro. --- include/sys/wait.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sys/wait.h b/include/sys/wait.h index 9b177874b..bc6f59612 100644 --- a/include/sys/wait.h +++ b/include/sys/wait.h @@ -29,7 +29,7 @@ #define WIFEXITED(s) (_LOW(s) == 0) /* normal exit */ #define WEXITSTATUS(s) (_HIGH(s)) /* exit status */ #define WTERMSIG(s) (_LOW(s) & 0177) /* sig value */ -#define WIFSIGNALED(s) (((unsigned int)(s)-1 & 0xFFFF) < 0xFF) /* signaled */ +#define WIFSIGNALED(s) ((((unsigned int)(s)-1) & 0xFFFFU) < 0xFFU) /* signaled */ #define WIFSTOPPED(s) (_LOW(s) == 0177) /* stopped */ #define WSTOPSIG(s) (_HIGH(s) & 0377) /* stop signal */