mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/sam3/periph/gpio.c: fix cpp.check shiftTooManyBitsSigned
This commit is contained in:
parent
cc2c3a0163
commit
4c0dd49603
@ -314,7 +314,7 @@ static inline void isr_handler(Pio *port, int port_num)
|
||||
uint32_t status = (port->PIO_ISR & port->PIO_IMR);
|
||||
|
||||
for (int i = 0; i < 32; i++) {
|
||||
if (status & (1 << i)) {
|
||||
if (status & ((uint32_t)1 << i)) {
|
||||
int ctx = _ctx(port_num, i);
|
||||
exti_ctx[ctx].cb(exti_ctx[ctx].arg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user