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

(cherry picked from commit e7cd5ffff88f1f4dfba2693041cc78fcf3613fba)

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
rG50c272dd2e74: bhyve basl: Use GCC pragmas.
Branches
Unknown
Tags
Unknown