HomeFreeBSD

posixshm_test: Fix sign mismatches in ?: results.

Description

posixshm_test: Fix sign mismatches in ?: results.

GCC 12's -Wsign-compare complains if the two alternative results of
the ?: operator are differently signed. Cast the small, sub-page
off_t values to size_t to quiet the warning.

Reviewed by: imp, kib
Differential Revision: https://reviews.freebsd.org/D37539

Details

Provenance
jhbAuthored on Dec 5 2022, 12:31 AM
Reviewer
imp
Differential Revision
D37539: posixshm_test: Fix sign mismatches in ?: results.
Parents
rGaa9ce62be54f: fwcontrol: Disable -Wzero-length-bounds warnings.
Branches
Unknown
Tags
Unknown