Skip to content

Commit 5f5b4a5

Browse files
committed
Fixed new cppcheck warning in hal/stm32c0.c
1 parent b5c8bc8 commit 5f5b4a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hal/stm32c0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
#define FLASH_SR_PROGERR (1 << 3) /* RM0490 - 3.7.4 - FLASH_SR */
8989
#define FLASH_SR_EOP (1 << 0) /* RM0490 - 3.7.4 - FLASH_SR */
9090

91-
#define FLASH_CR_LOCK (1 << 31) /* RM0490 - 3.7.5 - FLASH_CR */
91+
#define FLASH_CR_LOCK (1UL << 31) /* RM0490 - 3.7.5 - FLASH_CR */
9292
#define FLASH_CR_STRT (1 << 16) /* RM0490 - 3.7.5 - FLASH_CR */
9393

9494
#define FLASH_CR_PER (1 << 1) /* RM0490 - 3.7.5 - FLASH_CR */

0 commit comments

Comments
 (0)