aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmaple/util.h4
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