Index: base/threading/thread_unittest.cc |
diff --git a/base/threading/thread_unittest.cc b/base/threading/thread_unittest.cc |
index a1a237f23c67c1d0c396a2294ed807cac695408e..be5ad90fde48c7dd12d414b7469f638f7e57fed0 100644 |
--- a/base/threading/thread_unittest.cc |
+++ b/base/threading/thread_unittest.cc |
@@ -177,8 +177,10 @@ TEST_F(ThreadTest, TwoTasks) { |
// Test that all events are dispatched before the Thread object is |
// destroyed. We do this by dispatching a sleep event before the |
// event that will toggle our sentinel value. |
- a.message_loop()->PostTask(FROM_HERE, |
- base::Bind(&base::PlatformThread::Sleep, 20)); |
+ a.message_loop()->PostTask( |
+ FROM_HERE, |
+ base::Bind(static_cast<void (*)(int)>(&base::PlatformThread::Sleep), |
+ 20)); |
a.message_loop()->PostTask(FROM_HERE, base::Bind(&ToggleValue, |
&was_invoked)); |
} |