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)
Thu, Nov 7, 2:02 PM
Unknown Object (File)
Wed, Nov 6, 4:34 AM
Unknown Object (File)
Sun, Nov 3, 8:44 AM
Unknown Object (File)
Fri, Nov 1, 3:46 AM
Unknown Object (File)
Sun, Oct 13, 8:22 PM
Unknown Object (File)
Sep 27 2024, 8:54 AM
Unknown Object (File)
Sep 11 2024, 8:10 PM
Unknown Object (File)
Sep 11 2024, 8:10 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable