summaryrefslogtreecommitdiff
path: root/tests/priority2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/priority2.c')
-rw-r--r--tests/priority2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/priority2.c b/tests/priority2.c
index a5575ab..b435203 100644
--- a/tests/priority2.c
+++ b/tests/priority2.c
@@ -95,7 +95,7 @@ void * func(void * arg)
assert(policy == SCHED_OTHER);
result = pthread_barrier_wait(&endBarrier);
assert(result == 0 || result == PTHREAD_BARRIER_SERIAL_THREAD);
- return (void *) param.sched_priority;
+ return (void *) (size_t)param.sched_priority;
}