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)
Tue, Jul 21, 12:57 AM
Unknown Object (File)
Mon, Jul 20, 1:38 AM
Unknown Object (File)
Sun, Jul 19, 9:29 PM
Unknown Object (File)
Fri, Jun 26, 2:05 AM
Unknown Object (File)
Jun 13 2026, 2:14 PM
Unknown Object (File)
Jun 13 2026, 10:23 AM
Unknown Object (File)
Jun 12 2026, 4:04 PM
Unknown Object (File)
May 7 2026, 2:26 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