Merge pull request #2930 from dachary/wip-warning

tests: fix cast compilation warning
This commit is contained in:
Haomai Wang 2014-11-15 00:12:05 +08:00
commit d957fbdb74

View File

@ -197,7 +197,7 @@ TEST_P(EventDriverTest, NetworkSocketTest) {
fired_events.clear();
pthread_t thread1;
r = pthread_create(&thread1, NULL, echoclient, (void*)port);
r = pthread_create(&thread1, NULL, echoclient, (void*)(intptr_t)port);
ASSERT_EQ(r, 0);
tv.tv_sec = 5;
tv.tv_usec = 0;