HomeFreeBSD

bhyve: Fix sign compare warnings in the e1000 device model.

Description

bhyve: Fix sign compare warnings in the e1000 device model.

Adding a bare constant to a uint16_t promotes to a signed int which
triggers these warnings. Changing the constant to be explicitly
unsigned instead promotes the expression to unsigned int.

Reviewed by: corvink, markj
Differential Revision: https://reviews.freebsd.org/D37485

Details

Provenance
jhbAuthored on Nov 29 2022, 1:08 AM
Reviewer
corvink
Differential Revision
D37485: bhyve: Fix sign compare warnings in the e1000 device model.
Parents
rG0acf696151e3: bhyve basl: Use GCC pragmas.
Branches
Unknown
Tags
Unknown