From c3973648250aeb062d7d99a71257e2287c18a1ae Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 1 Jul 2011 09:33:35 +0000 Subject: See the ChangeLog --- pthread_mutex_trylock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pthread_mutex_trylock.c') diff --git a/pthread_mutex_trylock.c b/pthread_mutex_trylock.c index aeb79cd..d6b6872 100644 --- a/pthread_mutex_trylock.c +++ b/pthread_mutex_trylock.c @@ -70,7 +70,7 @@ pthread_mutex_trylock (pthread_mutex_t * mutex) { /* Non-robust */ if (0 == (PTW32_INTERLOCKED_LONG) PTW32_INTERLOCKED_COMPARE_EXCHANGE_LONG ( - (PTW32_INTERLOCKED_PTR) &mx->lock_idx, + (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx, (PTW32_INTERLOCKED_LONG) 1, (PTW32_INTERLOCKED_LONG) 0)) { @@ -105,7 +105,7 @@ pthread_mutex_trylock (pthread_mutex_t * mutex) if ((PTW32_INTERLOCKED_LONG)PTW32_ROBUST_NOTRECOVERABLE == PTW32_INTERLOCKED_EXCHANGE_ADD_LONG( - (PTW32_INTERLOCKED_PTR)statePtr, + (PTW32_INTERLOCKED_LONGPTR)statePtr, (PTW32_INTERLOCKED_LONG)0)) { return ENOTRECOVERABLE; @@ -115,7 +115,7 @@ pthread_mutex_trylock (pthread_mutex_t * mutex) kind = -kind - 1; /* Convert to non-robust range */ if (0 == (PTW32_INTERLOCKED_LONG) PTW32_INTERLOCKED_COMPARE_EXCHANGE_LONG ( - (PTW32_INTERLOCKED_PTR) &mx->lock_idx, + (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx, (PTW32_INTERLOCKED_LONG) 1, (PTW32_INTERLOCKED_LONG) 0)) { -- cgit v1.2.3