From 36f20e534f37968e3d4d3ceb42d8d8d0b06dd829 Mon Sep 17 00:00:00 2001 From: Josef 'Jeff' Sipek Date: Tue, 30 Jul 2019 21:58:41 -0400 Subject: [PATCH] include: BIT64 should always produce a uint64_t Signed-off-by: Josef 'Jeff' Sipek --- include/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/types.h b/include/types.h index eddfd78..e092042 100644 --- a/include/types.h +++ b/include/types.h @@ -58,7 +58,7 @@ typedef int64_t s64; /* * The MSB is bit 0 */ -#define BIT64(x) (1u << (63-(x))) +#define BIT64(x) ((uint64_t) (1ull << (63-(x)))) #define BIT32(x) (1u << (31-(x))) #define BIT16(x) (1u << (15-(x))) #define BIT8(x) (1u << (7-(x))) -- 2.11.4.GIT