From d35a6db82a0eabb0c283aaf09fe162b89e146959 Mon Sep 17 00:00:00 2001 From: Antonio Mallia Date: Wed, 30 Jan 2019 18:13:19 -0500 Subject: [PATCH 1/2] Update mmap.ipp --- include/mio/detail/mmap.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mio/detail/mmap.ipp b/include/mio/detail/mmap.ipp index d38a1b8..69f070e 100644 --- a/include/mio/detail/mmap.ipp +++ b/include/mio/detail/mmap.ipp @@ -318,7 +318,7 @@ void basic_mmap::map(const handle_type handle, return; } - const auto file_size = detail::query_file_size(handle, error); + const size_t file_size = detail::query_file_size(handle, error); if(error) { return; From d25c02f09c1c130f0da5219cefc416f2e9c5ea6a Mon Sep 17 00:00:00 2001 From: Antonio Mallia Date: Sat, 2 Feb 2019 14:07:14 -0500 Subject: [PATCH 2/2] Update mmap.ipp --- include/mio/detail/mmap.ipp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mio/detail/mmap.ipp b/include/mio/detail/mmap.ipp index 69f070e..0b89178 100644 --- a/include/mio/detail/mmap.ipp +++ b/include/mio/detail/mmap.ipp @@ -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::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;