summaryrefslogtreecommitdiff
path: root/tests/barrier5.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/barrier5.c')
-rw-r--r--tests/barrier5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/barrier5.c b/tests/barrier5.c
index b64b7d7..7810638 100644
--- a/tests/barrier5.c
+++ b/tests/barrier5.c
@@ -56,7 +56,7 @@ func(void * crossings)
int result;
int serialThreads = 0;
- while ((LONG)crossings >= (LONG)InterlockedIncrement((LPLONG)&totalThreadCrossings))
+ while ((LONG)(size_t)crossings >= (LONG)InterlockedIncrement((LPLONG)&totalThreadCrossings))
{
result = pthread_barrier_wait(&barrier);
@@ -97,7 +97,7 @@ main()
for (i = 1; i <= j; i++)
{
- assert(pthread_create(&t[i], NULL, func, (void *) Crossings) == 0);
+ assert(pthread_create(&t[i], NULL, func, (void *)(size_t)Crossings) == 0);
}
serialThreadsTotal = 0;