]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ipfilter: Cast uintmax_t values to size_t when adding to a pointer.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 28 Sep 2022 20:58:34 +0000 (13:58 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 28 Sep 2022 20:58:34 +0000 (13:58 -0700)
commit9c4f7e82348b656aef9660f859b76d6e894590aa
treed752cd939a3eafbb0e743162ed6d259c3ad881a8
parentc5eed4146fc9ac6abeef9e26f6675e86d0888443
ipfilter: Cast uintmax_t values to size_t when adding to a pointer.

GCC warns about the mismatched sizes on 32-bit platforms where
uintmax_t is larger in size than a pointer.

Reviewed by: imp, cy
Differential Revision: https://reviews.freebsd.org/D36753
sys/netpfil/ipfilter/netinet/mlfk_ipl.c