mirror of
https://github.com/vimpunk/mio.git
synced 2025-12-06 16:57:01 +08:00
Update mmap.ipp
This commit is contained in:
parent
d35a6db82a
commit
d25c02f09c
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user