diff options
author | Marti Bolivar <mbolivar@mit.edu> | 2010-09-21 17:21:36 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@mit.edu> | 2010-09-21 17:21:36 -0400 |
commit | f2fd21628e79ac8e9289a1a8b8f7d11ad4797361 (patch) | |
tree | a4d34ecce18f1a28d2abfae5e20485d1fa03a690 /libmaple | |
parent | ff31b640dd7614faa29466ed02da5267c2a02225 (diff) | |
download | librambutan-f2fd21628e79ac8e9289a1a8b8f7d11ad4797361.tar.gz librambutan-f2fd21628e79ac8e9289a1a8b8f7d11ad4797361.zip |
minor bugfix to BIT definition
Diffstat (limited to 'libmaple')
-rw-r--r-- | libmaple/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |