From 85dfeaf6133e1b74eefed26cf76c3f8631c7dd1d Mon Sep 17 00:00:00 2001 From: rpj Date: Sat, 5 Mar 2011 07:21:12 +0000 Subject: Rework pthread_join result arg casting --- tests/inherit1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/inherit1.c') diff --git a/tests/inherit1.c b/tests/inherit1.c index 1933bb1..24ceec5 100644 --- a/tests/inherit1.c +++ b/tests/inherit1.c @@ -169,7 +169,7 @@ main() assert(pthread_attr_setschedparam(&attr, ¶m) == 0); assert(pthread_create(&t, &attr, func, NULL) == 0); pthread_join(t, &result); - assert((int) result == mainParam.sched_priority); + assert((int)(size_t) result == mainParam.sched_priority); } } -- cgit v1.2.3