Page MenuHomeFreeBSD

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

Authored by jhb on Nov 23 2022, 11:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 29, 7:31 AM
Unknown Object (File)
Wed, Apr 29, 7:27 AM
Unknown Object (File)
Mon, Apr 27, 9:28 PM
Unknown Object (File)
Thu, Apr 23, 8:04 AM
Unknown Object (File)
Tue, Apr 21, 8:34 AM
Unknown Object (File)
Mon, Apr 20, 5:30 PM
Unknown Object (File)
Tue, Apr 14, 6:32 AM
Unknown Object (File)
Mon, Apr 13, 10:08 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable