cpu/cortexm_common: Fix signedness warning

This commit is contained in:
Joakim Gebart 2015-07-04 11:16:15 +02:00
parent 84bf05a0bd
commit 32c213d0b0

View File

@ -46,7 +46,7 @@ void cortexm_init(void)
/* set SVC interrupt to same priority as the rest */
NVIC_SetPriority(SVCall_IRQn, CPU_DEFAULT_IRQ_PRIO);
/* initialize all vendor specific interrupts with the same value */
for (int i = 0; i < CPU_IRQ_NUMOF; i++) {
for (IRQn_Type i = 0; i < CPU_IRQ_NUMOF; i++) {
NVIC_SetPriority(i, CPU_DEFAULT_IRQ_PRIO);
}
}