aboutsummaryrefslogtreecommitdiff
path: root/pthreads/pthread_spin_trylock.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthreads/pthread_spin_trylock.c')
-rw-r--r--pthreads/pthread_spin_trylock.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/pthreads/pthread_spin_trylock.c b/pthreads/pthread_spin_trylock.c
index c601a191f..a6c65aff6 100644
--- a/pthreads/pthread_spin_trylock.c
+++ b/pthreads/pthread_spin_trylock.c
@@ -61,12 +61,9 @@ pthread_spin_trylock (pthread_spinlock_t * lock)
s = *lock;
switch ((long)
- 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))
{
case PTW32_SPIN_UNLOCKED:
return 0;