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
F102716954: D37485.diff
Sat, Nov 16, 7:08 AM
Unknown Object (File)
Oct 8 2024, 6:12 AM
Unknown Object (File)
Oct 2 2024, 8:28 AM
Unknown Object (File)
Oct 2 2024, 1:16 AM
Unknown Object (File)
Sep 30 2024, 12:23 AM
Unknown Object (File)
Sep 28 2024, 9:32 AM
Unknown Object (File)
Sep 9 2024, 6:30 AM
Unknown Object (File)
Sep 8 2024, 6:56 AM
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