diff options
author | ENikS <evgeni@eniks.com> | 2014-09-06 15:59:59 -0400 |
---|---|---|
committer | ENikS <evgeni@eniks.com> | 2014-09-06 15:59:59 -0400 |
commit | 8d657a651735426388c5f7462e2dbf24225a26cb (patch) | |
tree | 125b0e5b08f351d9d53eb11aee85673f779ce99f /src/allocators.cpp | |
parent | b8d92236f61699846f67d8ce6cb55458a46f9de1 (diff) |
Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false'
Diffstat (limited to 'src/allocators.cpp')
-rw-r--r-- | src/allocators.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/allocators.cpp b/src/allocators.cpp index 15f34aa2c8..8ecd7206cd 100644 --- a/src/allocators.cpp +++ b/src/allocators.cpp @@ -46,7 +46,7 @@ static inline size_t GetSystemPageSize() bool MemoryPageLocker::Lock(const void *addr, size_t len) { #ifdef WIN32 - return VirtualLock(const_cast<void*>(addr), len); + return VirtualLock(const_cast<void*>(addr), len) != 0; #else return mlock(addr, len) == 0; #endif @@ -55,7 +55,7 @@ bool MemoryPageLocker::Lock(const void *addr, size_t len) bool MemoryPageLocker::Unlock(const void *addr, size_t len) { #ifdef WIN32 - return VirtualUnlock(const_cast<void*>(addr), len); + return VirtualUnlock(const_cast<void*>(addr), len) != 0; #else return munlock(addr, len) == 0; #endif |