From 32d6463fe7a01f1f87a3771e7ce13cb46b556192 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 7 Jul 2015 12:33:03 +0300 Subject: [PATCH] Make BIT() unsigned int instead of int This is needed to avoid ubsan warnings on BIT(31). Signed-off-by: Jouni Malinen --- src/utils/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/common.h b/src/utils/common.h index 88318f5d2..b14035513 100644 --- a/src/utils/common.h +++ b/src/utils/common.h @@ -433,7 +433,7 @@ void perror(const char *s); #endif #ifndef BIT -#define BIT(x) (1 << (x)) +#define BIT(x) (1U << (x)) #endif /*