From 95b9a362ff707d754ff3a7d7e1c807d7e2ae4a53 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 6 Nov 2012 14:05:20 +0000 Subject: [PATCH] tsan: fix compiler warning llvm-svn: 167458 --- compiler-rt/lib/tsan/lit_tests/static_init5.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/tsan/lit_tests/static_init5.cc b/compiler-rt/lib/tsan/lit_tests/static_init5.cc index 9d44eb2..1d0ed6d 100644 --- a/compiler-rt/lib/tsan/lit_tests/static_init5.cc +++ b/compiler-rt/lib/tsan/lit_tests/static_init5.cc @@ -17,7 +17,7 @@ void *AsyncInit(void *p) { Cache *CreateCache() { pthread_t t; - pthread_create(&t, 0, AsyncInit, (void*)rand()); + pthread_create(&t, 0, AsyncInit, (void*)(long)rand()); void *res; pthread_join(t, &res); return (Cache*)res; -- 2.7.4