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)
Dec 23 2023, 11:55 AM
Unknown Object (File)
Sep 30 2023, 7:14 PM
Unknown Object (File)
Sep 21 2023, 10:21 PM
Unknown Object (File)
Jul 9 2023, 5:47 AM
Unknown Object (File)
Jul 9 2023, 5:45 AM
Unknown Object (File)
Jul 9 2023, 5:44 AM
Unknown Object (File)
Jul 4 2023, 7:00 PM
Unknown Object (File)
Jun 26 2023, 1:56 AM
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