From dc96a61d144c228d3218cdf52665af8db3722807 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 2 Oct 2023 10:54:36 +0100 Subject: [PATCH] Cast a compile warning away --- src/dhcp6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; -- 2.47.2