diff --git a/cpu/lpc1768/periph/gpio.c b/cpu/lpc1768/periph/gpio.c index c876f9050b..3ac26d15c6 100644 --- a/cpu/lpc1768/periph/gpio.c +++ b/cpu/lpc1768/periph/gpio.c @@ -231,7 +231,7 @@ void isr_eint3(void) /* invoke all handlers */ for (int i = 0; i < NUMOF_IRQS; i++) { - if (status & (1 << i)) { + if (status & ((uint32_t)1 << i)) { isr_ctx[i].cb(isr_ctx[i].arg); LPC_GPIOINT->IO0IntClr |= (1 << i);