Update mmap.ipp

This commit is contained in:
Antonio Mallia 2019-02-02 14:07:14 -05:00 committed by GitHub
parent d35a6db82a
commit d25c02f09c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,7 @@ file_handle_type open_file(const String& path, const access_mode mode,
return handle;
}
inline int64_t query_file_size(file_handle_type handle, std::error_code& error)
inline size_t query_file_size(file_handle_type handle, std::error_code& error)
{
error.clear();
#ifdef _WIN32
@ -318,7 +318,7 @@ void basic_mmap<AccessMode, ByteT>::map(const handle_type handle,
return;
}
const size_t file_size = detail::query_file_size(handle, error);
const auto file_size = detail::query_file_size(handle, error);
if(error)
{
return;