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
F132517633: D37485.diff
Fri, Oct 17, 2:32 PM
F132511736: D37485.diff
Fri, Oct 17, 1:15 PM
Unknown Object (File)
Mon, Oct 13, 3:52 PM
Unknown Object (File)
Sun, Oct 12, 2:59 PM
Unknown Object (File)
Sun, Oct 12, 2:58 PM
Unknown Object (File)
Sun, Oct 12, 3:50 AM
Unknown Object (File)
Mon, Oct 6, 2:44 AM
Unknown Object (File)
Tue, Sep 23, 3:48 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