mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 18:57:16 +08:00
[libc] fix 64bit issue for pthreads
This commit is contained in:
Executable → Regular
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user