diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/mmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/mmap.cpp b/util/mmap.cpp index 9e20f05a28d..bb678a48982 100644 --- a/util/mmap.cpp +++ b/util/mmap.cpp @@ -52,7 +52,7 @@ namespace mongo { // make sure we map full length if preexisting file. boost::uintmax_t l = boost::filesystem::file_size( filename ); assert( l <= 0x7fffffff ); - length = l; + length = (long) l; } void* MemoryMappedFile::map(const char *filename) { |