mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
e1ef4c29a3
commit
42f96162c3
1 changed files with 1 additions and 1 deletions
|
|
@ -639,7 +639,7 @@ vm_page_dump_index_to_pa(int bit)
|
|||
dump_avail[i] / PAGE_SIZE;
|
||||
if (bit < tot)
|
||||
return ((vm_paddr_t)bit * PAGE_SIZE +
|
||||
dump_avail[i] & ~PAGE_MASK);
|
||||
(dump_avail[i] & ~PAGE_MASK));
|
||||
bit -= tot;
|
||||
}
|
||||
return ((vm_paddr_t)NULL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue