summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common
diff options
context:
space:
mode:
authorShell <[email protected]>2024-03-30 17:58:38 +0800
committerGitHub <[email protected]>2024-03-30 17:58:38 +0800
commit864055bf1806f1331843379ced674b454b59bfca (patch)
tree998720b2f18de67fb122d0930a4a80467ff9389c /components/libc/compilers/common
parent6d1bc9b2f82e7b6c49e3a7fd38ed66aab1ac86d6 (diff)
[fixup] aarch64 UMP compiler error (#8677)
Signed-off-by: Shell <[email protected]>
Diffstat (limited to 'components/libc/compilers/common')
-rw-r--r--components/libc/compilers/common/ctime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/libc/compilers/common/ctime.c b/components/libc/compilers/common/ctime.c
index a1bb3c439d..c6602698ff 100644
--- a/components/libc/compilers/common/ctime.c
+++ b/components/libc/compilers/common/ctime.c
@@ -879,7 +879,8 @@ static void rtthread_timer_wrapper(void *timerobj)
}
#ifdef RT_USING_SMART
/* this field is named as tid in musl */
- int tid = *(int *)&timer->sigev_notify_function;
+ void *ptid = &timer->sigev_notify_function;
+ int tid = *(int *)ptid;
struct lwp_timer_event_param *data = rt_container_of(timer->work, struct lwp_timer_event_param, work);
data->signo = timer->sigev_signo;