diff --git a/drivers/net/enc28j60.c b/drivers/net/enc28j60.c index c58a6d2841..ef5b9fe2fa 100644 --- a/drivers/net/enc28j60.c +++ b/drivers/net/enc28j60.c @@ -2081,8 +2081,10 @@ static int enc_ifup(struct net_driver_s *dev) int ret; ninfo("Bringing up: %d.%d.%d.%d\n", - dev->d_ipaddr & 0xff, (dev->d_ipaddr >> 8) & 0xff, - (dev->d_ipaddr >> 16) & 0xff, dev->d_ipaddr >> 24); + (int)(dev->d_ipaddr & 0xff), + (int)((dev->d_ipaddr >> 8) & 0xff), + (int)((dev->d_ipaddr >> 16) & 0xff), + (int)(dev->d_ipaddr >> 24)); /* Lock the SPI bus so that we have exclusive access */ @@ -2153,8 +2155,10 @@ static int enc_ifdown(struct net_driver_s *dev) int ret; ninfo("Taking down: %d.%d.%d.%d\n", - dev->d_ipaddr & 0xff, (dev->d_ipaddr >> 8) & 0xff, - (dev->d_ipaddr >> 16) & 0xff, dev->d_ipaddr >> 24); + (int)(dev->d_ipaddr & 0xff), + (int)((dev->d_ipaddr >> 8) & 0xff), + (int)((dev->d_ipaddr >> 16) & 0xff), + (int)(dev->d_ipaddr >> 24)); /* Lock the SPI bus so that we have exclusive access */