aboutsummaryrefslogtreecommitdiff
path: root/pthreads/pthread_spin_lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthreads/pthread_spin_lock.c')
-rw-r--r--pthreads/pthread_spin_lock.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/pthreads/pthread_spin_lock.c b/pthreads/pthread_spin_lock.c
index 90b3abee4..b560e1489 100644
--- a/pthreads/pthread_spin_lock.c
+++ b/pthreads/pthread_spin_lock.c
@@ -61,12 +61,9 @@ pthread_spin_lock (pthread_spinlock_t * lock)
s = *lock;
while ((PTW32_INTERLOCKED_LONG) PTW32_SPIN_LOCKED ==
- PTW32_INTERLOCKED_COMPARE_EXCHANGE ((PTW32_INTERLOCKED_LPLONG) &
- (s->interlock),
- (PTW32_INTERLOCKED_LONG)
- PTW32_SPIN_LOCKED,
- (PTW32_INTERLOCKED_LONG)
- PTW32_SPIN_UNLOCKED))
+ PTW32_INTERLOCKED_COMPARE_EXCHANGE_LONG ((PTW32_INTERLOCKED_LONGPTR) &s->interlock,
+ (PTW32_INTERLOCKED_LONG) PTW32_SPIN_LOCKED,
+ (PTW32_INTERLOCKED_LONG) PTW32_SPIN_UNLOCKED))
{
}