summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tsan/lit_tests/static_init5.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tsan/lit_tests/static_init5.cc b/lib/tsan/lit_tests/static_init5.cc
index 9d44eb240..1d0ed6d54 100644
--- a/lib/tsan/lit_tests/static_init5.cc
+++ b/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;