atomic_ptr fix of Win64

This commit is contained in:
Martin Sustrik
2010-04-15 07:32:25 +02:00
parent 7668e7976d
commit ea18d30c20
2 changed files with 2 additions and 2 deletions

View File

@@ -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