From f2fd21628e79ac8e9289a1a8b8f7d11ad4797361 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 21 Sep 2010 17:21:36 -0400 Subject: minor bugfix to BIT definition --- libmaple/util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmaple/util.h') diff --git a/libmaple/util.h b/libmaple/util.h index be5e430..f5e7e88 100644 --- a/libmaple/util.h +++ b/libmaple/util.h @@ -34,7 +34,7 @@ #include "libmaple.h" -#define BIT(shift) (1 << (shift)) +#define BIT(shift) (1UL << (shift)) #define BIT_MASK_SHIFT(mask, shift) ((mask) << (shift)) /* Return bits m to n of x */ @@ -74,7 +74,7 @@ void throb(void); // Asserts for sanity checks, redefine DEBUG_LEVEL in libmaple.h to compile out -// these checks +// these checks #define DEBUG_NONE 0 #define DEBUG_FAULT 1 -- cgit v1.2.3