changeset 652:c195a73e0204

include: BIT64 should always produce a uint64_t Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Tue, 30 Jul 2019 21:58:41 -0400
parents 887ae564371a
children 0d289341e756
files include/types.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/include/types.h	Thu Mar 29 17:41:48 2012 -0400
+++ b/include/types.h	Tue Jul 30 21:58:41 2019 -0400
@@ -58,7 +58,7 @@
 /*
  * 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)))