summaryrefslogtreecommitdiff
path: root/src/core/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/network.c')
-rw-r--r--src/core/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/network.c b/src/core/network.c
index 5a6e276a..42d58bb3 100644
--- a/src/core/network.c
+++ b/src/core/network.c
@@ -403,7 +403,7 @@ int net_ip2host(IPADDR *ip, char *host)
ip4 = ntohl(ip->addr.ip.s_addr);
sprintf(host, "%lu.%lu.%lu.%lu",
- (ip4 & 0xff000000) >> 24,
+ (ip4 & 0xff000000UL) >> 24,
(ip4 & 0x00ff0000) >> 16,
(ip4 & 0x0000ff00) >> 8,
(ip4 & 0x000000ff));