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)
Sun, Mar 30, 7:41 PM
Unknown Object (File)
Sun, Mar 16, 11:36 PM
Unknown Object (File)
Feb 23 2025, 11:07 PM
Unknown Object (File)
Feb 14 2025, 3:28 PM
Unknown Object (File)
Feb 10 2025, 3:23 AM
Unknown Object (File)
Jan 30 2025, 9:55 PM
Unknown Object (File)
Jan 26 2025, 6:05 PM
Unknown Object (File)
Jan 24 2025, 4:58 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