summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/export/system.h2
-rw-r--r--firmware/target/sh/system-target.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index d5da2225d6..3216948997 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -267,7 +267,7 @@ static inline uint32_t swap_odd_even32(uint32_t value)
#endif /* !SIMULATOR */
#ifndef BIT_N
-#define BIT_N(n) (1UL << (n))
+#define BIT_N(n) (1U << (n))
#endif
/* Declare this as HIGHEST_IRQ_LEVEL if they don't differ */
diff --git a/firmware/target/sh/system-target.h b/firmware/target/sh/system-target.h
index 2568911a1e..a84ce07af9 100644
--- a/firmware/target/sh/system-target.h
+++ b/firmware/target/sh/system-target.h
@@ -129,7 +129,7 @@ static inline uint32_t swap_odd_even32(uint32_t value)
extern const unsigned bit_n_table[32];
#define BIT_N(n) ( \
__builtin_constant_p(n) \
- ? (1LU << (n)) \
+ ? (1U << (n)) \
: bit_n_table[n] \
)