]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/vm/vm_page.h
vm_page_dump_index_to_pa(): Add braces to the expression involving + and &.
authorkib <kib@FreeBSD.org>
Thu, 8 Oct 2020 22:46:15 +0000 (22:46 +0000)
committerkib <kib@FreeBSD.org>
Thu, 8 Oct 2020 22:46:15 +0000 (22:46 +0000)
commit4a036532948179a68977a7b75c140aa83f51533c
tree4bb59dd8eb43eb2810f87631ee9729b76ea8446a
parentfd1e6be7b6681209cb165b4d291d22fd26082068
vm_page_dump_index_to_pa(): Add braces to the expression involving + and &.

The precedence of the '&' operator is less than of '+'.  Added braces
do change the order of evaluation into the natural one, in my opinion.
On the other hand, the value of the expression should not change since
all elements should have page-aligned values.

This fixes a gcc warning reported.

Reported by: adrian
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/vm/vm_page.h