Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /pthread_spin_unlock.c [5af9e8] .. [1e0bb8] Maximize Restore

  Switch to side-by-side view

--- a/pthread_spin_unlock.c
+++ b/pthread_spin_unlock.c
@@ -56,12 +56,9 @@
     }
 
   switch ((long)
-	  PTW32_INTERLOCKED_COMPARE_EXCHANGE ((PTW32_INTERLOCKED_PTR) &
-					      (s->interlock),
-					      (PTW32_INTERLOCKED_VALUE)
-					      PTW32_SPIN_UNLOCKED,
-					      (PTW32_INTERLOCKED_VALUE)
-					      PTW32_SPIN_LOCKED))
+	  PTW32_INTERLOCKED_COMPARE_EXCHANGE_LONG ((PTW32_INTERLOCKED_PTR) &s->interlock,
+					      (PTW32_INTERLOCKED_LONG) PTW32_SPIN_UNLOCKED,
+					      (PTW32_INTERLOCKED_LONG) PTW32_SPIN_LOCKED))
     {
     case PTW32_SPIN_LOCKED:
       return 0;