From: Jouni Malinen Date: Tue, 7 Jul 2015 09:33:03 +0000 (+0300) Subject: Make BIT() unsigned int instead of int X-Git-Tag: hostap_2_5~468 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32d6463fe7a01f1f87a3771e7ce13cb46b556192;p=thirdparty%2Fhostap.git Make BIT() unsigned int instead of int This is needed to avoid ubsan warnings on BIT(31). Signed-off-by: Jouni Malinen --- 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 /*