1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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 abca77beb0
commit eff01f21f8

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 */