cpu/cc26x0: Cast gpio_t to unsigned int for comparison

This commit is contained in:
Joakim Nohlgård 2016-06-01 16:40:28 +02:00
parent c2b20f1f27
commit a1f4d1617f

View File

@ -34,7 +34,7 @@ static gpio_isr_ctx_t gpio_chan[GPIO_ISR_CHAN_NUMOF];
int gpio_init(gpio_t pin, gpio_mode_t mode)
{
if ((pin < 0) || (pin > 31))
if ((unsigned int)pin > 31)
return -1;
/* enable GPIO clock */