提交 fe2e9e92 编写于 作者: B Bernard Xiong

[libc] fix 64bit issue for pthreads

上级 a4f1905b
......@@ -277,7 +277,7 @@ int pthread_create(pthread_t *pid,
/* set pthread cleanup function and ptd data */
ptd->tid->cleanup = _pthread_cleanup;
ptd->tid->user_data = (rt_uint32_t)ptd;
ptd->tid->user_data = (rt_ubase_t)ptd;
/* start thread */
if (rt_thread_startup(ptd->tid) == RT_EOK)
......
......@@ -623,7 +623,7 @@ struct rt_thread
void *lwp;
#endif
rt_uint32_t user_data; /**< private user data beyond this thread */
rt_ubase_t user_data; /**< private user data beyond this thread */
};
typedef struct rt_thread *rt_thread_t;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册