Skip to content

Commit

Permalink
Fixed failed quality gates: C-style pointer casting
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrmtkr committed Jan 10, 2024
1 parent 8ff73f4 commit b94f1dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ACE/tests/Future_Stress_Test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void* runner (void* args)
int expected_res = config.a+config.b*config.c;
int actual_res = -1;
if (ACE_Thread::spawn((ACE_THR_FUNC)worker,
(void *)&config, THR_NEW_LWP | THR_JOINABLE, 0,
static_cast<void*>(&config), THR_NEW_LWP | THR_JOINABLE, 0,
&thread_id) == -1)
{
ACE_ERROR ((LM_INFO,
Expand Down Expand Up @@ -128,7 +128,7 @@ run_main (int argc, ACE_TCHAR *argv[])
{
ACE_Thread_Manager::instance ()->spawn_n (n_threads,
ACE_THR_FUNC (runner),
(void *) &duration,
static_cast<void*>(&duration),
THR_NEW_LWP | THR_DETACHED);

ACE_Thread_Manager::instance ()->wait ();
Expand Down

0 comments on commit b94f1dc

Please sign in to comment.