diff options
author | dwight <dwight@10gen.com> | 2011-04-15 17:32:45 -0400 |
---|---|---|
committer | dwight <dwight@10gen.com> | 2011-04-15 17:32:45 -0400 |
commit | feb266b1a9e28cbaa3275fde46679a32af4f6600 (patch) | |
tree | c9df5224fa476ac2c99ab86807aabb4c5bb03477 /db/mongommf.cpp | |
parent | 3d1f0d67835a0ce4a3213dd0514fe58df3010d56 (diff) | |
download | mongo-feb266b1a9e28cbaa3275fde46679a32af4f6600.tar.gz |
fix compile warning
Diffstat (limited to 'db/mongommf.cpp')
-rw-r--r-- | db/mongommf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/mongommf.cpp b/db/mongommf.cpp index f165baf55b6..70410e9ee2a 100644 --- a/db/mongommf.cpp +++ b/db/mongommf.cpp @@ -101,7 +101,7 @@ namespace mongo { #if 1 // https://jira.mongodb.org/browse/SERVER-2942 DWORD old; - bool ok = VirtualProtect(oldPrivateAddr, len, PAGE_READONLY, &old); + bool ok = VirtualProtect(oldPrivateAddr, (SIZE_T) len, PAGE_READONLY, &old); if( !ok ) { DWORD e = GetLastError(); log() << "VirtualProtect failed in remapPrivateView " << filename() << hex << oldPrivateAddr << ' ' << len << ' ' << errnoWithDescription(e) << endl; |