Diff of /pthread_mutex_consistent.c [ff142e] .. [c39736]  Maximize  Restore

  Switch to side-by-side view

--- a/pthread_mutex_consistent.c
+++ b/pthread_mutex_consistent.c
@@ -81,7 +81,7 @@
   ptw32_robust_node_t* robust = mx->robustNode;
 
   switch ((LONG)PTW32_INTERLOCKED_COMPARE_EXCHANGE_LONG(
-            (PTW32_INTERLOCKED_PTR)&robust->stateInconsistent,
+            (PTW32_INTERLOCKED_LONGPTR)&robust->stateInconsistent,
             (PTW32_INTERLOCKED_LONG)PTW32_ROBUST_INCONSISTENT,
             (PTW32_INTERLOCKED_LONG)-1 /* The terminating thread sets this */))
     {
@@ -178,7 +178,7 @@
 
   if (mx->kind >= 0
         || (PTW32_INTERLOCKED_LONG)PTW32_ROBUST_INCONSISTENT != PTW32_INTERLOCKED_COMPARE_EXCHANGE_LONG(
-                                                (PTW32_INTERLOCKED_PTR)&mx->robustNode->stateInconsistent,
+                                                (PTW32_INTERLOCKED_LONGPTR)&mx->robustNode->stateInconsistent,
                                                 (PTW32_INTERLOCKED_LONG)PTW32_ROBUST_CONSISTENT,
                                                 (PTW32_INTERLOCKED_LONG)PTW32_ROBUST_INCONSISTENT))
     {

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks