Page MenuHomeFreeBSD

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

Authored by jhb on Wed, Nov 23, 11:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 2, 10:51 AM
Unknown Object (File)
Tue, Nov 29, 1:11 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