]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Cast a compile warning away
authorRoy Marples <roy@marples.name>
Mon, 2 Oct 2023 09:54:36 +0000 (10:54 +0100)
committerRoy Marples <roy@marples.name>
Mon, 2 Oct 2023 09:54:36 +0000 (10:54 +0100)
src/dhcp6.c

index c7fc385952732529f9299dfe9ee22420834941de..7e5b66cd02dc67117a2a0c620cc3b573b6f0bf93 100644 (file)
@@ -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++;