From c3065c00ffd4830b4bcfe596adf4efbf88af9e22 Mon Sep 17 00:00:00 2001 From: sU8U7SfkcwTJVH7PjaVmej7D <62424391+sU8U7SfkcwTJVH7PjaVmej7D@users.noreply.github.com> Date: Fri, 20 Mar 2020 11:10:43 +0100 Subject: [PATCH] xtensa: fix sign-conversion warning --- components/xtensa/include/xtensa/xtruntime.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/xtensa/include/xtensa/xtruntime.h b/components/xtensa/include/xtensa/xtruntime.h index 9d72c96ed4..b6d35184d8 100644 --- a/components/xtensa/include/xtensa/xtruntime.h +++ b/components/xtensa/include/xtensa/xtruntime.h @@ -158,12 +158,12 @@ extern unsigned int _xtos_ints_on( unsigned int mask ); /* Newer functions to enable/disable the specified interrupt. */ static inline void _xtos_interrupt_enable(unsigned int intnum) { - _xtos_ints_on(1 << intnum); + _xtos_ints_on(1U << intnum); } static inline void _xtos_interrupt_disable(unsigned int intnum) { - _xtos_ints_off(1 << intnum); + _xtos_ints_off(1U << intnum); } extern unsigned _xtos_set_intlevel( int intlevel ); @@ -234,4 +234,3 @@ extern void _xtos_timer_3_delta( int cycles ); #endif /* !_ASMLANGUAGE && !__ASSEMBLER__ */ #endif /* XTRUNTIME_H */ -