]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a sign mismatch warning in the physmem code
authorAndrew Turner <andrew@FreeBSD.org>
Mon, 28 Mar 2022 10:29:42 +0000 (11:29 +0100)
committerAndrew Turner <andrew@FreeBSD.org>
Tue, 19 Apr 2022 09:18:02 +0000 (10:18 +0100)
commit37c9ff4adfbdda281071bb4690b954de45884f72
treefc1ca1fa188982746abbfb6e86a4c28222d0ab92
parent8d1ea089800a1fc61d18d75d6a7f46c94fa7626d
Fix a sign mismatch warning in the physmem code

Make sure both sides of a comparison are unsigned. As the values being
compared are size_t make the the value in the for loop size_t too.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit f461b95561fff9d7f39942f7a9aba37ba69ed1fe)
sys/kern/subr_physmem.c