Skip to content

Commit e163b2c

Browse files
AlexFabrekartben
authored andcommitted
arm: exception: fix comparison of int of different signs
Clang 20.1.0 -Wsign-compare warning on int being compared with uint32_t. Signed-off-by: Alex Fabre <alex.fabre@rtone.fr>
1 parent da2ecd3 commit e163b2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/include/cortex_m/exception.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ extern volatile irq_offload_routine_t offload_routine;
4747
/* Prefix. Indicates that this is an EXC_RETURN value.
4848
* This field reads as 0b11111111.
4949
*/
50-
#define EXC_RETURN_INDICATOR_PREFIX (0xFF << 24)
50+
#define EXC_RETURN_INDICATOR_PREFIX (0xFFU << 24)
5151
/* bit[0]: Exception Secure. The security domain the exception was taken to. */
5252
#define EXC_RETURN_EXCEPTION_SECURE_Pos 0
5353
#define EXC_RETURN_EXCEPTION_SECURE_Msk BIT(EXC_RETURN_EXCEPTION_SECURE_Pos)

0 commit comments

Comments
 (0)