aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/Examples/ex8.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/Examples/ex8.c')
-rw-r--r--linuxthreads/Examples/ex8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linuxthreads/Examples/ex8.c b/linuxthreads/Examples/ex8.c
index 1b9b335..1976bfb 100644
--- a/linuxthreads/Examples/ex8.c
+++ b/linuxthreads/Examples/ex8.c
@@ -68,7 +68,7 @@ main (void)
pthread_join (th, &res);
- return (int) res;
+ return (int) (long int) res;
}
@@ -97,5 +97,5 @@ thread (void *arg)
if (status == 0)
status = var != (PREPARE_BIT | PARENT_BIT);
- return (void *) status;
+ return (void *) (long int) status;
}