summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-04-15 07:32:25 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-04-15 07:32:25 +0200
commitea18d30c209cb4e3f0dd0bc5e4380345e81b6fb6 (patch)
treebae5046dec61c30bdf8ac9d63fb9f5761747d892 /src
parent7668e7976dc6c3e18a314d991381f29f5cbcc6ef (diff)
atomic_ptr fix of Win64
Diffstat (limited to 'src')
-rw-r--r--src/atomic_ptr.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/atomic_ptr.hpp b/src/atomic_ptr.hpp
index e4a7491..9f2e759 100644
--- a/src/atomic_ptr.hpp
+++ b/src/atomic_ptr.hpp
@@ -78,7 +78,7 @@ namespace zmq
inline T *xchg (T *val_)
{
#if defined ZMQ_ATOMIC_PTR_WINDOWS
- return (T*) InterlockedExchangePointer (&ptr, val_);
+ return (T*) InterlockedExchangePointer ((PVOID*) &ptr, val_);
#elif defined ZMQ_ATOMIC_PTR_SYSTEM
return (T*) atomic_swap_ptr (&ptr, val_);
#elif defined ZMQ_ATOMIC_PTR_X86