From 787548d36c0c1257cbcc0023eaf34255a62b13d6 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Tue, 1 Mar 2011 15:21:14 +0100 Subject: [PATCH] fix mmap warning on win32 --- src/libcore/mmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/mmap.cpp b/src/libcore/mmap.cpp index 571025c1..a87c1557 100644 --- a/src/libcore/mmap.cpp +++ b/src/libcore/mmap.cpp @@ -8,7 +8,7 @@ MTS_NAMESPACE_BEGIN MemoryMappedFile::MemoryMappedFile(const fs::path &filename) : m_filename(filename) { - m_size = fs::file_size(filename); + m_size = (size_t) fs::file_size(filename); Log(EInfo, "Mapping \"%s\" into memory (%s)..", filename.filename().c_str(), memString(m_size).c_str()); #if defined(__LINUX__) || defined(__OSX__)