Use try_from in getpagesize(), add test
Use try_from()
for the page size conversion to c_int
. The return value and errno
policy (or lack thereof) may be up for discussion, but at least the function doesn't just truncate now.
Use try_from()
for the page size conversion to c_int
. The return value and errno
policy (or lack thereof) may be up for discussion, but at least the function doesn't just truncate now.