From e58f1fa61511afd9ca8dae4e6e4129dc57833031 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Mon, 20 May 2024 09:27:52 +0800 Subject: [PATCH] Fix the -Wint-conversion --------- Signed-off-by: Andy Pan --- test/regress_main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/regress_main.c b/test/regress_main.c index eadd6680..4888f1a0 100644 --- a/test/regress_main.c +++ b/test/regress_main.c @@ -258,7 +258,15 @@ basic_test_setup(const struct testcase_t *testcase) evthread_flags |= EVTHREAD_PTHREAD_PRIO_INHERIT; #endif +#ifdef _WIN32 + DWORD tid; + THREAD_T p; + tid = THREAD_SELF(); + p = (THREAD_T)&tid; + thread_setup(p); +#else thread_setup(THREAD_SELF()); +#endif #ifndef _WIN32 if (testcase->flags & TT_ENABLE_IOCP_FLAG)