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)
Sat, Oct 11, 6:18 PM
Unknown Object (File)
Sat, Oct 11, 6:18 PM
Unknown Object (File)
Sat, Oct 11, 6:18 PM
Unknown Object (File)
Sat, Oct 11, 9:33 AM
Unknown Object (File)
Sun, Sep 21, 12:16 AM
Unknown Object (File)
Sep 8 2025, 2:13 PM
Unknown Object (File)
Aug 14 2025, 11:14 AM
Unknown Object (File)
Aug 10 2025, 9:12 AM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable