diff --git a/sys/src/9/imx8/gpio.c b/sys/src/9/imx8/gpio.c index 09f35ed5c..0fdb3aefd 100644 --- a/sys/src/9/imx8/gpio.c +++ b/sys/src/9/imx8/gpio.c @@ -57,7 +57,7 @@ enable(uint pin) void gpioout(uint pin, int set) { - int bit = 1 << (pin % 32); + u32int bit = 1 << (pin % 32); Ctlr *ctlr = enable(pin); if(ctlr == nil) return; @@ -72,7 +72,7 @@ gpioout(uint pin, int set) int gpioin(uint pin) { - int bit = 1 << (pin % 32); + u32int bit = 1 << (pin % 32); Ctlr *ctlr = enable(pin); if(ctlr == nil) return -1;