fix mmap warning on win32

metadata
Wenzel Jakob 2011-03-01 15:21:14 +01:00
parent e2f25f98d1
commit 787548d36c
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
MTS_NAMESPACE_BEGIN MTS_NAMESPACE_BEGIN
MemoryMappedFile::MemoryMappedFile(const fs::path &filename) : m_filename(filename) { 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)..", Log(EInfo, "Mapping \"%s\" into memory (%s)..",
filename.filename().c_str(), memString(m_size).c_str()); filename.filename().c_str(), memString(m_size).c_str());
#if defined(__LINUX__) || defined(__OSX__) #if defined(__LINUX__) || defined(__OSX__)