evdev: Add parentheses around '-' expression in operand of '&'.
This fixes a -Wparentheses error with GCC 9. Reviewed by: wulf Differential Revision: https://reviews.freebsd.org/D31947
This commit is contained in:
parent
cd16a848d1
commit
d99c87c8d5
@ -101,7 +101,7 @@ static void evdev_mt_replay_events(struct evdev_dev *);
|
||||
static inline int
|
||||
ffc_slot(struct evdev_dev *evdev, slotset_t slots)
|
||||
{
|
||||
return (ffs(~slots & (2U << MAXIMAL_MT_SLOT(evdev)) - 1) - 1);
|
||||
return (ffs(~slots & ((2U << MAXIMAL_MT_SLOT(evdev)) - 1)) - 1);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user