diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c index c79ddfa8b12..808819d1f4d 100644 --- a/sys/netinet/ip_divert.c +++ b/sys/netinet/ip_divert.c @@ -277,7 +277,7 @@ div_output(struct socket *so, struct mbuf *m, if (sin) { int i; - divert_tag.mh_data = (caddr_t)(int)sin->sin_port; + divert_tag.mh_data = (caddr_t)(uintptr_t)sin->sin_port; /* * Find receive interface with the given name, stuffed * (if it exists) in the sin_zero[] field.