From 5d3cab0042289223efc5bf8da33dc91486a2bfd2 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Mon, 25 Jan 2010 09:19:52 +0000 Subject: [PATCH] Added one more missing cast --- src/core/dhcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/dhcp.c b/src/core/dhcp.c index b2bb14c7..9318655b 100644 --- a/src/core/dhcp.c +++ b/src/core/dhcp.c @@ -924,7 +924,7 @@ dhcp_bind(struct netif *netif) /* TODO: this is not a valid check. what if the network mask is 0? */ if (sn_mask.addr == 0) { /* choose a safe subnet mask given the network class */ - u8_t first_octet = ip4_addr1(&sn_mask); + u8_t first_octet = (u8_t)ip4_addr1(&sn_mask); if (first_octet <= 127) { sn_mask.addr = htonl(0xff000000); } else if (first_octet >= 192) {