Skip to content

Commit

Permalink
Fix the -Wint-conversion
Browse files Browse the repository at this point in the history
---------

Signed-off-by: Andy Pan <i@andypan.me>
  • Loading branch information
panjf2000 committed May 20, 2024
1 parent a3b2b00 commit 79d764e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/regress_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,14 @@ basic_test_setup(const struct testcase_t *testcase)
evthread_flags |= EVTHREAD_PTHREAD_PRIO_INHERIT;
#endif

#ifdef _WIN32
DWORD tid;
tid = THREAD_SELF();
THREAD_T p = (THREAD_T)&tid;
thread_setup(p);
#else
thread_setup(THREAD_SELF());
#endif

#ifndef _WIN32
if (testcase->flags & TT_ENABLE_IOCP_FLAG)
Expand Down

0 comments on commit 79d764e

Please sign in to comment.