]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Cast away warning.
authorRoy Marples <roy@marples.name>
Wed, 15 Oct 2014 16:02:05 +0000 (16:02 +0000)
committerRoy Marples <roy@marples.name>
Wed, 15 Oct 2014 16:02:05 +0000 (16:02 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 85a8b97fe55de580645e7e4fba3588d4727d3d7e..f50e3609949e3148552ce22362cea8466572a34c 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -458,7 +458,7 @@ dhcp6_delegateaddr(struct in6_addr *addr, struct interface *ifp,
 #define BIT_MASK(len) (BIT(len) - 1)
                if (ia->sla_max == 0)
                        /* Work out the real sla_max from our bits used */
-                       ia->sla_max = BIT_MASK(asla.prefix_len -
+                       ia->sla_max = (uint32_t)BIT_MASK(asla.prefix_len -
                            prefix->prefix_len);
        }