Page MenuHomeFreeBSD

posixshm_test: Fix sign mismatches in ?: results.
ClosedPublic

Authored by jhb on Nov 29 2022, 7:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Aug 12, 2:27 PM
Unknown Object (File)
Wed, Aug 12, 2:26 PM
Unknown Object (File)
Tue, Aug 11, 4:13 PM
Unknown Object (File)
Mon, Aug 10, 5:18 PM
Unknown Object (File)
Sun, Aug 9, 3:05 PM
Unknown Object (File)
Sun, Aug 9, 1:14 AM
Unknown Object (File)
Fri, Aug 7, 4:23 PM
Unknown Object (File)
Fri, Aug 7, 3:00 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable