Page MenuHomeFreeBSD

<sys/bitstring.h>: Cast _BITSTR_BITS to int in a ternary operator.
ClosedPublic

Authored by jhb on Feb 1 2022, 1:08 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 17, 11:21 AM
Unknown Object (File)
Mon, Mar 2, 6:36 PM
Unknown Object (File)
Mon, Mar 2, 7:00 AM
Unknown Object (File)
Feb 22 2026, 5:11 PM
Unknown Object (File)
Feb 21 2026, 11:35 AM
Unknown Object (File)
Feb 20 2026, 2:49 AM
Unknown Object (File)
Feb 8 2026, 1:03 PM
Unknown Object (File)
Feb 8 2026, 12:29 PM
Subscribers

Details

Summary

This fixes a -Wsign-compare error reported by GCC due to the two
results of the ternary operator having differing signedness.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44208
Build 41096: arc lint + arc unit