Fix the -Wint-conversion

---------

Signed-off-by: Andy Pan <i@andypan.me>
This commit is contained in:
Andy Pan 2024-05-20 09:27:52 +08:00 committed by Azat Khuzhin
parent ee4fa05dfe
commit e58f1fa615

View File

@ -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)