summaryrefslogtreecommitdiff
path: root/pthread_spin_destroy.c
diff options
context:
space:
mode:
authorrpj <rpj>2011-03-03 23:37:20 +0000
committerrpj <rpj>2011-03-03 23:37:20 +0000
commite470da85f7b9426eea03d66086c2822bf29e9b05 (patch)
treeb3747768258dc62752612327904be1f1067d5c7f /pthread_spin_destroy.c
parent1170175259781ece4a8d99d517230f4b9ecb7b50 (diff)
Some cleanups, mostly x86_64 compat plus interlocked macros
Diffstat (limited to 'pthread_spin_destroy.c')
-rw-r--r--pthread_spin_destroy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pthread_spin_destroy.c b/pthread_spin_destroy.c
index 8fe2267..c9317d2 100644
--- a/pthread_spin_destroy.c
+++ b/pthread_spin_destroy.c
@@ -59,9 +59,9 @@ pthread_spin_destroy (pthread_spinlock_t * lock)
PTW32_INTERLOCKED_COMPARE_EXCHANGE ((PTW32_INTERLOCKED_LPLONG)
& (s->interlock),
(PTW32_INTERLOCKED_LONG)
- PTW32_OBJECT_INVALID,
+ (size_t)PTW32_OBJECT_INVALID,
(PTW32_INTERLOCKED_LONG)
- PTW32_SPIN_UNLOCKED))
+ (size_t)PTW32_SPIN_UNLOCKED))
{
result = EINVAL;
}