mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Fix the -Wint-conversion
--------- Signed-off-by: Andy Pan <i@andypan.me>
This commit is contained in:
parent
ee4fa05dfe
commit
e58f1fa615
@ -258,7 +258,15 @@ basic_test_setup(const struct testcase_t *testcase)
|
|||||||
evthread_flags |= EVTHREAD_PTHREAD_PRIO_INHERIT;
|
evthread_flags |= EVTHREAD_PTHREAD_PRIO_INHERIT;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
DWORD tid;
|
||||||
|
THREAD_T p;
|
||||||
|
tid = THREAD_SELF();
|
||||||
|
p = (THREAD_T)&tid;
|
||||||
|
thread_setup(p);
|
||||||
|
#else
|
||||||
thread_setup(THREAD_SELF());
|
thread_setup(THREAD_SELF());
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
if (testcase->flags & TT_ENABLE_IOCP_FLAG)
|
if (testcase->flags & TT_ENABLE_IOCP_FLAG)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user