diff options
author | rpj <rpj> | 2011-03-05 07:21:12 +0000 |
---|---|---|
committer | rpj <rpj> | 2011-03-05 07:21:12 +0000 |
commit | 85dfeaf6133e1b74eefed26cf76c3f8631c7dd1d (patch) | |
tree | 92e0f60e66f36f1ea1ca9cec4617d7f187698ecf /tests/rwlock6_t.c | |
parent | 275d03d3af64e4f5e1769584214f6fccc303456e (diff) |
Rework pthread_join result arg casting
Diffstat (limited to 'tests/rwlock6_t.c')
-rw-r--r-- | tests/rwlock6_t.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/rwlock6_t.c b/tests/rwlock6_t.c index f8a05f1..6151d75 100644 --- a/tests/rwlock6_t.c +++ b/tests/rwlock6_t.c @@ -95,10 +95,10 @@ main() pthread_t wrt2; pthread_t rdt1; pthread_t rdt2; - int wr1Result = 0; - int wr2Result = 0; - int rd1Result = 0; - int rd2Result = 0; + void* wr1Result = (void*)0; + void* wr2Result = (void*)0; + void* rd1Result = (void*)0; + void* rd2Result = (void*)0; bankAccount = 0; @@ -115,10 +115,10 @@ main() assert(pthread_join(wrt2, (void *) &wr2Result) == 0); assert(pthread_join(rdt2, (void *) &rd2Result) == 0); - assert(wr1Result == 10); - assert(rd1Result == 0); - assert(wr2Result == 20); - assert(rd2Result == 20); + assert((int)(size_t)wr1Result == 10); + assert((int)(size_t)rd1Result == 0); + assert((int)(size_t)wr2Result == 20); + assert((int)(size_t)rd2Result == 20); return 0; } |