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)
Fri, Sep 18, 1:29 AM
Unknown Object (File)
Fri, Sep 18, 12:40 AM
Unknown Object (File)
Thu, Sep 17, 11:12 PM
Unknown Object (File)
Sun, Sep 13, 8:33 AM
Unknown Object (File)
Sat, Sep 12, 8:09 AM
Unknown Object (File)
Thu, Sep 10, 2:15 AM
Unknown Object (File)
Tue, Sep 8, 1:18 PM
Unknown Object (File)
Sun, Sep 6, 9:16 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