diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-08-13 20:00:02 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-08-13 20:00:02 -0400 |
commit | 24c8e1a7fedbe47a49e285d507aa81d2881b3aaa (patch) | |
tree | 27bcb5e0eb24022a13d538097f37b4a88c1e80d7 /src/include/msvc.h | |
parent | 9df581ae364ec648210bdde7330793f02c9e9ca0 (diff) | |
download | mongo-24c8e1a7fedbe47a49e285d507aa81d2881b3aaa.tar.gz |
Fix from Mark B.
Diffstat (limited to 'src/include/msvc.h')
-rw-r--r-- | src/include/msvc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/msvc.h b/src/include/msvc.h index 99f6d22e01a..c35406c7f93 100644 --- a/src/include/msvc.h +++ b/src/include/msvc.h @@ -77,7 +77,8 @@ WT_ATOMIC_FUNC(iv64, int64_t, volatile int64_t, 64, __int64) static inline int __wt_atomic_cas_ptr(void *vp, void *old, void *new) { - return (_InterlockedCompareExchange64(vp, new, old) == (old)); + return (_InterlockedCompareExchange64( + vp, (int64_t)new, (int64_t)old) == ((int64_t)old)); } static inline void WT_BARRIER(void) { _ReadWriteBarrier(); } |