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

(cherry picked from commit 8a67a1a9646ef516fe84ecfa7ec3467b15b9e0cc)

Details

Provenance
jhbAuthored on Feb 1 2022, 5:45 PM
dougmCommitted on Jul 11 2022, 6:01 AM
Reviewer
dougm
Differential Revision
D34122: <sys/bitstring.h>: Cast _BITSTR_BITS to int in a ternary operator.
Parents
rGb1290f4746ca: vm_reserv: use enhanced bitstring for popmaps
Branches
Unknown
Tags
Unknown