[utest]Fixed compilation warning issues in smp/smp_affinity_prix_tc.

This commit is contained in:
Rbb666
2025-11-18 16:42:26 +08:00
committed by R b b666
parent 514bc130eb
commit 0af3b3eec1
2 changed files with 2 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ static void smp_affinity_pri1_tc(void)
if (threads[i] != RT_NULL)
{
rt_thread_control(threads[i], RT_THREAD_CTRL_BIND_CPU, (void *)i);
rt_thread_control(threads[i], RT_THREAD_CTRL_BIND_CPU, (void *)(rt_ubase_t)i);
rt_thread_startup(threads[i]);
}
}

View File

@@ -99,7 +99,7 @@ static void smp_affinity_pri2_tc(void)
if (threads[i] != RT_NULL)
{
uassert_true(1);
rt_thread_control(threads[i], RT_THREAD_CTRL_BIND_CPU, (void *)i);
rt_thread_control(threads[i], RT_THREAD_CTRL_BIND_CPU, (void *)(rt_ubase_t)i);
rt_thread_startup(threads[i]);
}
}