Skip to content

Commit 9ee1807

Browse files
committed
k
1 parent 3fa5be6 commit 9ee1807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/fast_io_hosted/platforms/posix_mapping.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ inline ::std::byte *sys_mmap(void *addr, ::std::size_t len, int prot, int flags,
1818
throw_posix_error(EINVAL);
1919
}
2020
}
21-
long ret{system_call<__NR_mmap, long>(addr, len, prot, flags, fd, offset)};
21+
::std::ptrdiff_t ret{system_call<__NR_mmap, ::std::ptrdiff_t>(addr, len, prot, flags, fd, offset)};
2222
system_call_throw_error(ret);
2323
return reinterpret_cast<::std::byte *>(static_cast<::std::uintptr_t>(ret));
2424
#elif defined(HAVE_MMAP64)

0 commit comments

Comments
 (0)