about summary refs log tree commit diff
path: root/nptl/tst-basic1.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-basic1.c')
-rw-r--r--nptl/tst-basic1.c4
1 files changed, 2 insertions, 2 deletions
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);