tsan: fix compiler warning
authorDmitry Vyukov <dvyukov@google.com>
Tue, 6 Nov 2012 14:05:20 +0000 (14:05 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Tue, 6 Nov 2012 14:05:20 +0000 (14:05 +0000)
llvm-svn: 167458

compiler-rt/lib/tsan/lit_tests/static_init5.cc

index 9d44eb2..1d0ed6d 100644 (file)
@@ -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;