Skip to content

Commit fe2e9e9

Browse files
committed
[libc] fix 64bit issue for pthreads
1 parent a4f1905 commit fe2e9e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/libc/pthreads/pthread.c

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ int pthread_create(pthread_t *pid,
277277

278278
/* set pthread cleanup function and ptd data */
279279
ptd->tid->cleanup = _pthread_cleanup;
280-
ptd->tid->user_data = (rt_uint32_t)ptd;
280+
ptd->tid->user_data = (rt_ubase_t)ptd;
281281

282282
/* start thread */
283283
if (rt_thread_startup(ptd->tid) == RT_EOK)

include/rtdef.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ struct rt_thread
623623
void *lwp;
624624
#endif
625625

626-
rt_uint32_t user_data; /**< private user data beyond this thread */
626+
rt_ubase_t user_data; /**< private user data beyond this thread */
627627
};
628628
typedef struct rt_thread *rt_thread_t;
629629

0 commit comments

Comments
 (0)