From: Roy Marples Date: Mon, 2 Oct 2023 09:54:36 +0000 (+0100) Subject: Cast a compile warning away X-Git-Tag: v10.0.3~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc96a61d144c228d3218cdf52665af8db3722807;p=thirdparty%2Fdhcpcd.git Cast a compile warning away --- diff --git a/src/dhcp6.c b/src/dhcp6.c index c7fc3859..7e5b66cd 100644 --- a/src/dhcp6.c +++ b/src/dhcp6.c @@ -1022,7 +1022,7 @@ dhcp6_makemessage(struct interface *ifp) n--; while (n-- > 0) *ep++ = *pp--; - n = ep - exb; + n = (size_t)(ep - exb); if (u8) { *ep = (uint8_t)(*pp << u8); n++;