mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Don't abuse the fact that -a == ~a + 1. Signed vs unsigned checkers
complain when a is a unsigned type. So instead use the latter here and be on our way. Spotted by: flexlint by way of phk
This commit is contained in:
parent
c5d5c855b7
commit
0a9e69cc6f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104638
@ -88,4 +88,4 @@
|
||||
#define CARDBUS_MAPREG_MEM_ADDR(mr) \
|
||||
((mr) & CARDBUS_MAPREG_MEM_ADDR_MASK)
|
||||
#define CARDBUS_MAPREG_MEM_SIZE(mr) \
|
||||
(CARDBUS_MAPREG_MEM_ADDR(mr) & -CARDBUS_MAPREG_MEM_ADDR(mr))
|
||||
(CARDBUS_MAPREG_MEM_ADDR(mr) & (~CARDBUS_MAPREG_MEM_ADDR(mr) + 1))
|
||||
|
Loading…
Reference in New Issue
Block a user