We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fa5be6 commit 9ee1807Copy full SHA for 9ee1807
include/fast_io_hosted/platforms/posix_mapping.h
@@ -18,7 +18,7 @@ inline ::std::byte *sys_mmap(void *addr, ::std::size_t len, int prot, int flags,
18
throw_posix_error(EINVAL);
19
}
20
21
- long ret{system_call<__NR_mmap, long>(addr, len, prot, flags, fd, offset)};
+ ::std::ptrdiff_t ret{system_call<__NR_mmap, ::std::ptrdiff_t>(addr, len, prot, flags, fd, offset)};
22
system_call_throw_error(ret);
23
return reinterpret_cast<::std::byte *>(static_cast<::std::uintptr_t>(ret));
24
#elif defined(HAVE_MMAP64)
0 commit comments