From 92ed3daf013788e18a1bb339721aa76389039863 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 15 Mar 2003 07:54:39 +0000 Subject: Update. * tst-basic1.c (do_test): Add cast to avoid warning. * tst-basic2.c (do_test): Likewise. --- nptl/tst-basic1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nptl/tst-basic1.c') diff --git a/nptl/tst-basic1.c b/nptl/tst-basic1.c index 8bb736ec6f..7637c8e497 100644 --- a/nptl/tst-basic1.c +++ b/nptl/tst-basic1.c @@ -48,7 +48,7 @@ do_test (void) int i; for (i = 0; i < N; ++i) - if (pthread_create (&t[i], NULL, tf, (void *) (i + 1)) != 0) + if (pthread_create (&t[i], NULL, tf, (void *) (long int) (i + 1)) != 0) { write (2, "create failed\n", 14); _exit (1); @@ -65,7 +65,7 @@ do_test (void) printf ("join failed: %d\n", e); _exit (1); } - else if (r != (void *) (i + 1)) + else if (r != (void *) (long int) (i + 1)) { write (2, "result wrong\n", 13); _exit (1); -- cgit v1.2.3