HomeFreeBSD

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

Description

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

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

Reviewed by: dougm, rlibby
Differential Revision: https://reviews.freebsd.org/D34122

Details

Provenance
jhbAuthored on Feb 1 2022, 5:45 PM
Reviewer
dougm
Differential Revision
D34122: <sys/bitstring.h>: Cast _BITSTR_BITS to int in a ternary operator.
Parents
rG792df7ced212: improve casting for pointer diffs
Branches
Unknown
Tags
Unknown