Skip to content

Commit

Permalink
[kernel] change size_t to rt_size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
Guozhanxin authored and mysterywolf committed Dec 19, 2024
1 parent 1dc2874 commit 7fb9a0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/kservice.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ rt_weak rt_err_t rt_backtrace_formatted_print(rt_ubase_t *buffer, long buflen)
{
rt_kprintf("please use: addr2line -e rtthread.elf -a -f");

for (size_t i = 0; i < buflen && buffer[i] != 0; i++)
for (rt_size_t i = 0; i < buflen && buffer[i] != 0; i++)
{
rt_kprintf(" 0x%lx", (rt_ubase_t)buffer[i]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ rt_err_t rt_thread_control(rt_thread_t thread, int cmd, void *arg)
{
rt_uint8_t cpu;

cpu = (rt_uint8_t)(size_t)arg;
cpu = (rt_uint8_t)(rt_size_t)arg;
return rt_sched_thread_bind_cpu(thread, cpu);
}

Expand Down

0 comments on commit 7fb9a0a

Please sign in to comment.